Documentation Index
Fetch the complete documentation index at: https://docs.cloudx.io/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
The CloudX CLI supports two authentication methods:- Browser OAuth with
cloudx auth login - API-key authentication with the
CLOUDX_API_KEYenvironment variable
Browser OAuth
cloudx auth login starts the browser-based OAuth sign-in flow and stores the resulting session locally.
Sign In
Run:Check Status
Run:0 when logged in and 1 when logged out or when the current sign-in session can’t be used. When the provisioning service is reachable, it also shows the active organization, account, role, and expiration details.
Sign Out
Run:API Key
API-key authentication lets the CLI run without an interactive browser session. The CLI reads the key fromCLOUDX_API_KEY and sends it to CloudX as a bearer token.
When CLOUDX_API_KEY is set, the CLI uses it instead of any stored OAuth session.
Only administrators can create, manage, and revoke API keys.
Create An API Key
- Open https://app.cloudx.io/settings/api-keys.
- Sign in as an administrator if prompted.
- Confirm you are on Settings > API Keys.
- Create an API key for your CLI workflow.
- Copy the key value when it is shown.
| Permission | Allows |
|---|---|
reports:read | cloudx report ... commands |
auctions:read | cloudx auction ... commands |
configuration:read | cloudx config show and cloudx config history |
Use The API Key
Set the key in your shell:CLOUDX_API_KEY.
Verify The API Key
Run:CLOUDX_API_KEY configured, the command validates the key with CloudX and prints API-key details such as key name, key ID, organization ID, account ID, account type, and permissions.
If verification fails, check that CLOUDX_API_KEY is set to the full key value and that the key has not been deleted or revoked in CloudX.
Stop Using An API Key
Unset the environment variable:cloudx auth logout only signs out the stored OAuth session. It does not revoke API keys.