Skip to main content
Manage API keys from the command line. Create keys for CI/CD pipelines, service integrations, and team members.

Commands

api-keys list

Lists all API keys with their names, full key values, creation dates, and last-used timestamps.
list and get return the full dh_live_* key value, not a masked prefix. Treat the output as sensitive — don’t paste it into logs or CI output.
API key IDs are numeric (e.g. 42), unlike most other resources which use UUIDs.

api-keys get

api-keys create

Create a key with an expiration date:
The create response includes the full key value — copy it into your secret store right away.

api-keys delete

Permanently delete an API key. Prompts for confirmation; pass --yes (-y) in scripts and CI.

api-keys revoke

Revoke an API key. The key remains visible in the list but can no longer authenticate.

Next steps

Authentication

Token resolution order and saved contexts.

Authentication reference

API token formats and security best practices.