# ccp apply



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

Apply a declarative resource manifest

```text
Usage: ccp apply [OPTIONS] --file <FILE>
```

| Argument   | Type or values | Default | Parser environment variable | Description                                                                   |
| ---------- | -------------- | ------- | --------------------------- | ----------------------------------------------------------------------------- |
| --file     | path           | —       | —                           | Manifest file (YAML, JSON or TOML)                                            |
| --org-id   | text           | —       | —                           | Organization ID (defaults to `CCP_ORG_ID` or the picker)                      |
| --dry-run  | flag           | false   | —                           | Preview the reconciliation without persisting it                              |
| --wait     | flag           | false   | —                           | Wait up to 30 minutes for the applied `SandboxTemplate` build to become ready |
| --json     | flag           | false   | —                           | Print the complete apply receipt as JSON                                      |
| --help, -h | flag           | —       | —                           | Print help                                                                    |

## Example [#example]

```bash
ccp apply --file agent.yaml --dry-run
```

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