CH·02CLI reference
deeprelay api-keys revoke
Revoke an API key; it fails its next request
Revoke an API key; it fails its next request
Synopsis
Revokes an API key. Its next request fails, and anything still configured with it stops working. Revoking cannot be undone; the key's past requests stay in the request log.
The command asks for confirmation. In a script, or anywhere stdin is not a terminal, pass --yes; without it nothing is revoked and the command exits 1. Declining the prompt revokes nothing and exits 0. On success it prints API key
Examples
deeprelay api-keys revoke 11111111-2222-3333-4444-555555555555
# Non-interactive
deeprelay api-keys revoke 11111111-2222-3333-4444-555555555555 --yes
deeprelay api-keys revoke <key-id> [flags]
Options
-h, --help help for revoke
--yes Revoke without the confirmation prompt
Options inherited from parent commands
--api-base string API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
--debug Enable debug logging to stderr
--no-preflight Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
-o, --output string Output format: table|json (default table on TTY, json otherwise) (default "table")
SEE ALSO
- deeprelay api-keys - Create and manage API keys with budgets, model allowlists and rate limits