# ccp deploy



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

Deploy a new or existing App

```text
Usage: ccp deploy [OPTIONS] [PATH]
```

| Argument                | Type or values | Default | Parser environment variable | Description                                                                                                                                                                                                  |
| ----------------------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| --json                  | flag           | false   | —                           | Emit structured JSON on stdout                                                                                                                                                                               |
| path                    | path           | —       | —                           | Path to a file or a directory containing an App                                                                                                                                                              |
| --client, -c            | path           | —       | —                           | Path to a client-side script                                                                                                                                                                                 |
| --public-dir, -p        | path           | —       | —                           | Path to a public directory to serve assets from                                                                                                                                                              |
| --no-minify             | flag           | false   | —                           | Keep JavaScript and CSS bundles readable for debugging                                                                                                                                                       |
| --prod, --production    | flag           | false   | —                           | Deploy as a production deployment                                                                                                                                                                            |
| --org-id                | text           | —       | —                           | Organization ID (skips org selection prompt)                                                                                                                                                                 |
| --app, --app-id         | text           | —       | —                           | App ID (skips app selection / creation prompt)                                                                                                                                                               |
| --yes, -y               | flag           | false   | —                           | Skip prompts: auto-create + link an App named after the project (single-org auto-picks; pass --org-id for multi-org)                                                                                         |
| --register-redirect-uri | flag           | false   | —                           | Register this preview deploy's host as an OIDC redirect URI (prod deploys do this automatically). Per-deploy opt-in; adds one URI with no auto-prune — clean up with `ccp oidc update --remove-redirect-uri` |
| --help, -h              | flag           | —       | —                           | Print help                                                                                                                                                                                                   |

## Example [#example]

```bash
ccp deploy --prod
```

## 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 |
