> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Promote your release to a test environment

> Use promote.py to make your deployed release available to the launcher.

After you deploy a release, promote it to an environment so the launcher can download it.

## How environments work

Each environment can require a different release of the same repository, depending on where that release is in your pipeline. For example, with these environments:

* `qa` requires `gameclient.0.0.8`
* `stage` requires `gameclient.0.0.7`
* `production` requires `gameclient.0.0.6`

A new release starts in `qa`, then moves up the chain as it passes testing until it reaches `production`.

## Run the promote script

The `promote.py` script sets the required release for an environment or promotes releases between environments. The sample launcher skin is set up to download the `gameclient` repository from an environment named `qa`, so promote your release there.

The `promote_cdn.json` file in `\samples\config\` already sets these arguments:

* `--repository`: the repository you're promoting a release from (`gameclient`)
* `--latest`: use the latest release deployed to this repository
* `--environment`: the environment you're promoting to (`qa`)

```json theme={null}
{
  "repository": "gameclient",
  "sync_directory": "<your-sync-directory>/",
  "latest": true,
  "environment": "qa"
}
```

1. In the same command prompt, run:

   ```bash theme={null}
   python.exe <package>\deploy\promote.py --config=<package>\samples\config\promote_cdn.json
   ```

The line `promoted RELEASEID to environment qa` means the promotion worked. The script assigns your release to the `qa` environment in the aliases file on your CDN.

Next, [build your launcher](https://docs.directgvr.com/quick-start/build-launcher.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.