Platform
CLI reference

ccp auth

View as Markdown

Manage authentication

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

ccp auth login

Log in with Cluster

Usage: ccp auth login [OPTIONS]
ArgumentType or valuesDefaultParser environment variableDescription
--deviceflagfalse—Use device authorization for SSH/headless login
--browserflagfalse—Force browser login with a localhost callback
--help, -hflag——Print help

ccp auth logout

Log out and clear credentials

Usage: ccp auth logout [OPTIONS]
ArgumentType or valuesDefaultParser environment variableDescription
--help, -hflag——Print help

ccp auth export-access-token

Print export TOKEN="..." for eval

Usage: ccp auth export-access-token [OPTIONS]
ArgumentType or valuesDefaultParser environment variableDescription
--help, -hflag——Print help

ccp auth print-access-token

Print raw access token to stdout

Usage: ccp auth print-access-token [OPTIONS]
ArgumentType or valuesDefaultParser environment variableDescription
--jsonflagfalse—Emit an access_token object
--help, -hflag——Print help

ccp auth shell-setup

Print shell wrapper function for ~/.zshrc

Usage: ccp auth shell-setup [OPTIONS]
ArgumentType or valuesDefaultParser environment variableDescription
--help, -hflag——Print help

Example

ccp auth login --device

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