# ccp sandbox



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

Create and connect to ephemeral Sandboxes

```text
Usage: ccp sandbox [OPTIONS] <COMMAND>
```

| Argument   | Type or values | Default | Parser environment variable | Description |
| ---------- | -------------- | ------- | --------------------------- | ----------- |
| --help, -h | flag           | —       | —                           | Print help  |

## `ccp sandbox list` [#ccp-sandbox-list]

List Sandboxes in an organization

```text
Usage: ccp sandbox list [OPTIONS]
```

Aliases: `ls`.

| Argument   | Type or values | Default | Parser environment variable | Description                        |
| ---------- | -------------- | ------- | --------------------------- | ---------------------------------- |
| --org-id   | text           | —       | —                           | Organization to list               |
| --json     | flag           | false   | —                           | Emit an array of Sandbox summaries |
| --help, -h | flag           | —       | —                           | Print help                         |

## `ccp sandbox delete` [#ccp-sandbox-delete]

Delete a Sandbox

```text
Usage: ccp sandbox delete [OPTIONS] <SANDBOX_ID>
```

Aliases: `rm`.

| Argument    | Type or values | Default | Parser environment variable | Description      |
| ----------- | -------------- | ------- | --------------------------- | ---------------- |
| sandbox\_id | text           | —       | —                           |                  |
| --yes, -y   | flag           | false   | —                           | Confirm deletion |
| --help, -h  | flag           | —       | —                           | Print help       |

## `ccp sandbox create` [#ccp-sandbox-create]

Create an ephemeral Sandbox from a template or published environment

```text
Usage: ccp sandbox create [OPTIONS]
```

| Argument               | Type or values | Default | Parser environment variable | Description                                                                      |
| ---------------------- | -------------- | ------- | --------------------------- | -------------------------------------------------------------------------------- |
| --template             | text           | —       | —                           | Applied `SandboxTemplate` name                                                   |
| --environment-revision | text           | —       | —                           | Exact published environment revision (machine provisioning, not session startup) |
| --org-id               | text           | —       | —                           | Organization ID (defaults to `CCP_ORG_ID` or the picker)                         |
| --ttl                  | duration       | 15m     | —                           | Absolute lifetime, such as 15m or 1h                                             |
| --help, -h             | flag           | —       | —                           | Print help                                                                       |

## `ccp sandbox connect` [#ccp-sandbox-connect]

Create scoped access to a declared Sandbox service

```text
Usage: ccp sandbox connect [OPTIONS] <SANDBOX_ID> <SERVICE>
```

| Argument    | Type or values | Default | Parser environment variable | Description                                               |
| ----------- | -------------- | ------- | --------------------------- | --------------------------------------------------------- |
| sandbox\_id | text           | —       | —                           | Sandbox ID                                                |
| service     | text           | —       | —                           | Declared service name                                     |
| --ttl       | duration       | 15m     | —                           | Access lifetime, such as 5m or 1h                         |
| --json      | flag           | false   | —                           | Emit the stable endpoint, token, and expiry JSON contract |
| --help, -h  | flag           | —       | —                           | Print help                                                |

## `ccp sandbox desktop` [#ccp-sandbox-desktop]

Open a graphical Sandbox desktop through a local authenticated tunnel

```text
Usage: ccp sandbox desktop [OPTIONS] <SANDBOX_ID>
```

| Argument    | Type or values | Default | Parser environment variable | Description                       |
| ----------- | -------------- | ------- | --------------------------- | --------------------------------- |
| sandbox\_id | text           | —       | —                           | Sandbox ID                        |
| --ttl       | duration       | 15m     | —                           | Access lifetime, such as 5m or 1h |
| --help, -h  | flag           | —       | —                           | Print help                        |

## Example [#example]

```bash
ccp sandbox create --template browser --ttl 15m
```

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