# ccp promote



{/* Generated by scripts/sync-cli-reference.ts */}

Promote the given preview Deployment to production

```text
Usage: ccp promote [OPTIONS] <DEPLOYMENT_ID> [DIRECTORY]
```

| Argument       | Type or values | Default | Parser environment variable | Description                           |
| -------------- | -------------- | ------- | --------------------------- | ------------------------------------- |
| deployment\_id | text           | —       | —                           | ID of the Deployment to promote       |
| directory      | path           | —       | —                           | Path to a directory containing an App |
| --help, -h     | flag           | —       | —                           | Print help                            |

## Example [#example]

```bash
ccp promote "$DEPLOYMENT_ID"
```

## Global options [#global-options]

Set `CCP_CONTEXT` to choose a named context. An explicit `--context` takes precedence. See [organization selection](/docs/ccp/organizations) for organization defaults.

| Argument  | Type or values | Default | Parser environment variable | Description                                         |
| --------- | -------------- | ------- | --------------------------- | --------------------------------------------------- |
| --context | text           | —       | —                           | Select a developer context from \~/.ccp/config.toml |
