Skip to main content

Device Code Login

The simplest way to authenticate. Opens your browser to authorize the CLI:
This displays a code like AB12-CDEF, prompts you to press Enter to open your browser, and waits for you to authorize. Once authorized, your API key is saved to ~/.danube/config.json.

API Key Login

If you already have an API key (e.g. from the dashboard), save it directly:
The key is validated against the API before saving.

Environment Variable

Set DANUBE_API_KEY to skip the config file entirely. Ideal for CI/CD:

Per-Command Override

Pass --api-key on any command:

Config File

The CLI stores credentials in ~/.danube/config.json (permissions 600):

Named Profiles

Use profiles for multiple accounts:

Priority Order

API key is resolved in this order:
  1. --api-key flag (highest)
  2. DANUBE_API_KEY environment variable
  3. Config file (~/.danube/config.json)

Commands

Troubleshooting

Run danube login to authenticate, or set DANUBE_API_KEY environment variable.
Copy the verification URL from the terminal output and open it manually.
The device code expires after 10 minutes. Run danube login again to get a new code.