Commands
| Command | Description |
|---|---|
devhelm auth login | Authenticate and save credentials |
devhelm auth logout | Remove the active context |
devhelm auth me | Show API key identity, organization, plan, and rate limits |
devhelm auth token | Display the current API token |
devhelm auth context | Show the active context |
devhelm auth context create <name> | Create a named context |
devhelm auth context list | List all contexts |
devhelm auth context use <name> | Switch to a context |
devhelm auth context delete <name> | Delete a context |
auth login
Authenticate interactively and save credentials to~/.devhelm/contexts.json. The token is validated against the API before saving — an invalid token exits with code 11 and saves nothing.
| Flag | Type | Default | Description |
|---|---|---|---|
--token | string | — | API token (skips interactive prompt) |
--name | string | default | Context name to save under |
auth logout
Remove the active context from~/.devhelm/contexts.json. If other contexts remain, the first one becomes active.
auth me
Show the API key identity, organization, plan tier, rate limits, and usage counters for the resolved token.auth token
Display the resolved API token. Useful for piping into other tools:auth context
Show active context
Create a context
| Flag | Type | Default | Description |
|---|---|---|---|
--token | string | — | API token (required) |
--api-url | string | https://api.devhelm.io | API base URL for this context |
--set-current | boolean | true | Switch to this context immediately (always on — there is currently no --no-set-current variant; use auth context use to switch back) |
List contexts
*.
Switch context
Delete a context
Next steps
CLI authentication guide
Token resolution order and best practices.
API keys
Create and manage API keys.