# ccp oidc



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

Register OIDC clients for Sign in with Cluster

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

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

## `ccp oidc create` [#ccp-oidc-create]

Register a new OIDC client (returns the one-time `client_secret`)

```text
Usage: ccp oidc create [OPTIONS] --name <NAME> --redirect-uri <REDIRECT_URIS>
```

| Argument       | Type or values   | Default | Parser environment variable | Description                                                                                                                    |
| -------------- | ---------------- | ------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| --name         | text             | —       | —                           | Human-readable name (unique per organization, 1–128 chars)                                                                     |
| --redirect-uri | text             | —       | —                           | Allowed redirect URI. Repeat for multiple (e.g. `--redirect-uri https://app.example.com/cb`)                                   |
| --subject-type | public, pairwise | —       | —                           | Subject identifier type. Opt-in: omit to accept the API default (public — stable `sub` across every relying party)             |
| --first-party  | flag             | false   | —                           | Mark as first-party (auto-accepts consent for end users). Defaults to false — third-party clients show the consent screen      |
| --scope        | text             | —       | —                           | OAuth 2.0 scope. Repeat for multiple. Defaults applied if omitted                                                              |
| --grant-type   | text             | —       | —                           | OAuth 2.0 grant type. Repeat for multiple. Defaults applied if omitted                                                         |
| --org-id       | text             | —       | —                           | Organization ID (reads from cluster.toml or selects interactively)                                                             |
| --no-link      | flag             | false   | —                           | Skip auto-linking the new client to the active project config. Default behavior: auto-link when run inside a project directory |
| --help, -h     | flag             | —       | —                           | Print help (see more with '--help')                                                                                            |

## `ccp oidc list` [#ccp-oidc-list]

List OIDC clients in an organization

```text
Usage: ccp oidc 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 redirect URIs, no styling |
| --help, -h | flag           | —       | —                           | Print help                                                                |

## `ccp oidc get` [#ccp-oidc-get]

Show details for an OIDC client (does NOT include `client_secret`)

```text
Usage: ccp oidc get [OPTIONS] <CLIENT_ID>
```

| Argument   | Type or values | Default | Parser environment variable | Description                                            |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------ |
| --json     | flag           | false   | —                           | Emit structured JSON on stdout                         |
| client\_id | text           | —       | —                           | Client ID (the `oc-…` value returned by create / list) |
| --help, -h | flag           | —       | —                           | Print help                                             |

## `ccp oidc rotate-secret` [#ccp-oidc-rotate-secret]

Generate a new `client_secret`. Old secret invalidated immediately

```text
Usage: ccp oidc rotate-secret [OPTIONS] <CLIENT_ID>
```

| Argument   | Type or values | Default | Parser environment variable | Description                                            |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------ |
| client\_id | text           | —       | —                           | Client ID (the `oc-…` value returned by create / list) |
| --yes, -y  | flag           | false   | —                           | Skip confirmation prompt                               |
| --help, -h | flag           | —       | —                           | Print help                                             |

## `ccp oidc update` [#ccp-oidc-update]

Update an OIDC client. Pass at least one of --add-redirect-uri, --remove-redirect-uri, --name, or --first-party / --no-first-party

```text
Usage: ccp oidc update [OPTIONS] <CLIENT_ID>
```

| Argument              | Type or values | Default | Parser environment variable | Description                                                                                             |
| --------------------- | -------------- | ------- | --------------------------- | ------------------------------------------------------------------------------------------------------- |
| client\_id            | text           | —       | —                           | Client ID (the `oc-…` value returned by create / list)                                                  |
| --add-redirect-uri    | text           | —       | —                           | Redirect URI to add. Repeatable. No-op if already registered                                            |
| --remove-redirect-uri | text           | —       | —                           | Redirect URI to remove. Repeatable. No-op if not registered. Refuses to leave the client with zero URIs |
| --name                | text           | —       | —                           | New display name (1-128 chars, unique per organization)                                                 |
| --first-party         | flag           | false   | —                           | Mark as first-party (consent auto-accepted)                                                             |
| --no-first-party      | flag           | false   | —                           | Mark as third-party (consent screen shown)                                                              |
| --help, -h            | flag           | —       | —                           | Print help                                                                                              |

## `ccp oidc link` [#ccp-oidc-link]

Link the current project to an OIDC client. Subsequent `ccp deploy` and `ccp domain link/unlink` calls will auto-sync the client's redirect URIs with the project's deployment hosts

```text
Usage: ccp oidc link [OPTIONS] <CLIENT_ID>
```

| Argument      | Type or values | Default | Parser environment variable | Description                                                                                                                                                                |
| ------------- | -------------- | ------- | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| client\_id    | text           | —       | —                           | Client ID (the `oc-…` value returned by create / list)                                                                                                                     |
| --no-backfill | flag           | false   | —                           | Skip the one-shot backfill of the current production URL and linked custom domains. Default: backfill on link so existing prod deploys work immediately without a redeploy |
| --help, -h    | flag           | —       | —                           | Print help                                                                                                                                                                 |

## `ccp oidc delete` [#ccp-oidc-delete]

Delete an OIDC client (DROPS every active relying-party session)

```text
Usage: ccp oidc delete [OPTIONS] <CLIENT_ID>
```

Aliases: `rm`.

| Argument   | Type or values | Default | Parser environment variable | Description                                            |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------------------------------ |
| client\_id | text           | —       | —                           | Client ID (the `oc-…` value returned by create / list) |
| --yes, -y  | flag           | false   | —                           | Skip confirmation prompt                               |
| --help, -h | flag           | —       | —                           | Print help                                             |

## Example [#example]

```bash
ccp oidc 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 |
