Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloud.red/llms.txt

Use this file to discover all available pages before exploring further.

crcli uses OAuth 2.0 device flow. Your token is stored in the OS keychain — no plaintext credentials, no repeated logins.

Log In

crcli auth login
A browser window opens automatically. Complete the login flow in your browser. crcli detects the completion and stores the token securely.
If the browser doesn’t open automatically, the command prints a URL you can paste manually.

Check Status

crcli auth status
Shows whether you’re authenticated and when the token expires.

Log Out

crcli auth logout
Removes the stored token from the OS keychain.

Token Storage

Tokens are stored in the OS keychain (Keychain on macOS, Secret Service on Linux, Windows Credential Manager on Windows). They are never written to disk in plaintext. crcli automatically refreshes expired tokens. If the refresh fails, it re-runs the device flow and opens the browser again.

Environments

By default crcli connects to the production environment. To use staging:
crcli --env staging <command>
--envAPI URLAuth URL
prod (default)https://{tenant}.portal.cloud.redhttps://auth.cloud.red
staginghttps://{tenant}.staging.cloud.redhttps://auth-staging.cloud.red
Each environment stores its token separately, so you can be logged in to both at once.