# ccp domain



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

Manage custom domains

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

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

## `ccp domain list` [#ccp-domain-list]

List custom domains in an organization

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

Aliases: `ls`.

| Argument   | Type or values | Default | Parser environment variable | Description                                                        |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------ |
| --org-id   | text           | —       | —                           | Organization ID (reads from cluster.toml or selects interactively) |
| --json     | flag           | false   | —                           | Emit JSON: full ids, exact timestamps, complete URLs, no styling   |
| --help, -h | flag           | —       | —                           | Print help                                                         |

## `ccp domain create` [#ccp-domain-create]

Start DNS ownership verification for an external domain

```text
Usage: ccp domain create [OPTIONS] <DOMAIN>
```

| Argument   | Type or values | Default | Parser environment variable | Description                                                        |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------ |
| domain     | text           | —       | —                           | Domain to claim (e.g., example.com)                                |
| --org-id   | text           | —       | —                           | Organization ID (reads from cluster.toml or selects interactively) |
| --help, -h | flag           | —       | —                           | Print help                                                         |

## `ccp domain verify` [#ccp-domain-verify]

Verify a pending external-domain ownership claim

```text
Usage: ccp domain verify [OPTIONS] <CLAIM_ID>
```

| Argument   | Type or values | Default | Parser environment variable | Description                                                        |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------ |
| claim\_id  | text           | —       | —                           | Claim ID printed by `ccp domain add`                               |
| --org-id   | text           | —       | —                           | Organization ID (reads from cluster.toml or selects interactively) |
| --help, -h | flag           | —       | —                           | Print help                                                         |

## `ccp domain link` [#ccp-domain-link]

Link a registered domain to a serverless app or VM service

```text
Usage: ccp domain link [OPTIONS] <DOMAIN>
```

| Argument   | Type or values | Default | Parser environment variable | Description                                                        |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------ |
| domain     | text           | —       | —                           | Domain to link (must already be registered)                        |
| --app      | text           | —       | —                           | App id to attach to. Defaults to the current project               |
| --vm       | text           | —       | —                           | VM service target in the form `&lt;vm_id&gt;:&lt;port&gt;`         |
| --org-id   | text           | —       | —                           | Organization ID (reads from cluster.toml or selects interactively) |
| --help, -h | flag           | —       | —                           | Print help                                                         |

## `ccp domain unlink` [#ccp-domain-unlink]

Unlink a domain from its current target (keeps the registration)

```text
Usage: ccp domain unlink [OPTIONS] <DOMAIN>
```

| Argument   | Type or values | Default | Parser environment variable | Description                                                        |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------ |
| --yes, -y  | flag           | false   | —                           | Confirm this destructive operation                                 |
| domain     | text           | —       | —                           | Domain to unlink                                                   |
| --org-id   | text           | —       | —                           | Organization ID (reads from cluster.toml or selects interactively) |
| --help, -h | flag           | —       | —                           | Print help                                                         |

## `ccp domain delete` [#ccp-domain-delete]

Remove (delete) a registered custom domain

```text
Usage: ccp domain delete [OPTIONS] <DOMAIN>
```

Aliases: `rm`.

| Argument   | Type or values | Default | Parser environment variable | Description                                                        |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------ |
| --yes, -y  | flag           | false   | —                           | Confirm this destructive operation                                 |
| domain     | text           | —       | —                           | Domain to remove                                                   |
| --org-id   | text           | —       | —                           | Organization ID (reads from cluster.toml or selects interactively) |
| --help, -h | flag           | —       | —                           | Print help                                                         |

## Example [#example]

```bash
ccp domain list
```

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