CLI Authentication
qumod supports two authentication workflows:
- Interactive Browser Login (Device Authorization Flow): Ideal for developers working locally on workstations.
- Headless Token Authentication (
QUMO_TOKEN): Ideal for CI/CD runners, Docker containers, and Coding Agents.
1. Interactive Device Authorization Flow
Run thelogin command:
qumod will initiate the OAuth 2.0 Device Authorization Flow (RFC 8628):
- The CLI will attempt to launch your system browser automatically.
- If running over SSH or a headless display, open the displayed URL manually and enter the one-time user code.
- Sign in using your Qumo Deploy account and click Approve.
- The CLI polls the control plane and automatically saves the issued session token to
~/.qumo/config.json. If a session was already stored there, the CLI ends it on the control plane once the new sign-in succeeds.
2. Headless Authentication (CI/CD & Coding Agents)
In automated environments where interactive prompts are impossible, pass credentials via an environment variable or flag:Environment Variable (Recommended for CI/CD)
ExportQUMO_TOKEN with a User or Identity Token:
Command Flag
You can also pass the token per-invocation using--token:
Flags take precedence over environment variables, which take precedence over saved tokens in
~/.qumo/config.json.Checking Current Identity (whoami)
To confirm authentication status, the active organization, and the IAM role:
JSON Mode for Scripts and Agents
Pass--json for structured, machine-readable output:
Logging Out
To clear local credentials and end thequmod login session on the control plane (a personal access token stays valid until you revoke it in the console):