Platform
CLI reference

ccp oidc

View as Markdown

Register OIDC clients for Sign in with Cluster

Usage: ccp oidc [OPTIONS] <COMMAND>
ArgumentType or valuesDefaultParser environment variableDescription
--help, -hflag——Print help

ccp oidc create

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

Usage: ccp oidc create [OPTIONS] --name <NAME> --redirect-uri <REDIRECT_URIS>
ArgumentType or valuesDefaultParser environment variableDescription
--nametext——Human-readable name (unique per organization, 1–128 chars)
--redirect-uritext——Allowed redirect URI. Repeat for multiple (e.g. --redirect-uri https://app.example.com/cb)
--subject-typepublic, pairwise——Subject identifier type. Opt-in: omit to accept the API default (public — stable sub across every relying party)
--first-partyflagfalse—Mark as first-party (auto-accepts consent for end users). Defaults to false — third-party clients show the consent screen
--scopetext——OAuth 2.0 scope. Repeat for multiple. Defaults applied if omitted
--grant-typetext——OAuth 2.0 grant type. Repeat for multiple. Defaults applied if omitted
--org-idtext——Organization ID (reads from cluster.toml or selects interactively)
--no-linkflagfalse—Skip auto-linking the new client to the active project config. Default behavior: auto-link when run inside a project directory
--help, -hflag——Print help (see more with '--help')

ccp oidc list

List OIDC clients in an organization

Usage: ccp oidc list [OPTIONS]

Aliases: ls.

ArgumentType or valuesDefaultParser environment variableDescription
--org-idtext——Organization ID (reads from cluster.toml or selects interactively)
--jsonflagfalse—Emit JSON: full ids, exact timestamps, complete redirect URIs, no styling
--help, -hflag——Print help

ccp oidc get

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

Usage: ccp oidc get [OPTIONS] <CLIENT_ID>
ArgumentType or valuesDefaultParser environment variableDescription
--jsonflagfalse—Emit structured JSON on stdout
client_idtext——Client ID (the oc-… value returned by create / list)
--help, -hflag——Print help

ccp oidc rotate-secret

Generate a new client_secret. Old secret invalidated immediately

Usage: ccp oidc rotate-secret [OPTIONS] <CLIENT_ID>
ArgumentType or valuesDefaultParser environment variableDescription
client_idtext——Client ID (the oc-… value returned by create / list)
--yes, -yflagfalse—Skip confirmation prompt
--help, -hflag——Print help

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

Usage: ccp oidc update [OPTIONS] <CLIENT_ID>
ArgumentType or valuesDefaultParser environment variableDescription
client_idtext——Client ID (the oc-… value returned by create / list)
--add-redirect-uritext——Redirect URI to add. Repeatable. No-op if already registered
--remove-redirect-uritext——Redirect URI to remove. Repeatable. No-op if not registered. Refuses to leave the client with zero URIs
--nametext——New display name (1-128 chars, unique per organization)
--first-partyflagfalse—Mark as first-party (consent auto-accepted)
--no-first-partyflagfalse—Mark as third-party (consent screen shown)
--help, -hflag——Print help

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

Usage: ccp oidc link [OPTIONS] <CLIENT_ID>
ArgumentType or valuesDefaultParser environment variableDescription
client_idtext——Client ID (the oc-… value returned by create / list)
--no-backfillflagfalse—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, -hflag——Print help

ccp oidc delete

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

Usage: ccp oidc delete [OPTIONS] <CLIENT_ID>

Aliases: rm.

ArgumentType or valuesDefaultParser environment variableDescription
client_idtext——Client ID (the oc-… value returned by create / list)
--yes, -yflagfalse—Skip confirmation prompt
--help, -hflag——Print help

Example

ccp oidc list

Global options

Set CCP_CONTEXT to choose a named context. An explicit --context takes precedence. See organization selection for organization defaults.

ArgumentType or valuesDefaultParser environment variableDescription
--contexttext——Select a developer context from ~/.ccp/config.toml

On this page