Skip to main content
The keys commands help you manage API keys for users and organizations.

Subcommands

User Keys

list

List API keys for the current user.
--json
boolean
Output in JSON format (default: false)
-h, --help
boolean
Print help information and exit
Aliases: ls

create

Create an API key for the current user.
--name
string
API key name
--expiry
string
Expiration date (ISO format) or empty for no expiry
--json
boolean
Output in JSON format (default: false)
-h, --help
boolean
Print help information and exit

delete

Delete an API key for the current user.
keyId
string[]
required
One or more API key IDs to delete

Organization Keys

list

List API keys for an organization.
--organization
string
Organization ID
--json
boolean
Output in JSON format (default: false)
-h, --help
boolean
Print help information and exit
Aliases: ls

create

Create an API key for an organization.
--organization
string
Organization ID
--name
string
API key name
--expiry
string
Expiration date (ISO format) or empty for no expiry
--json
boolean
Output in JSON format (default: false)
-h, --help
boolean
Print help information and exit

delete

Delete an API key for an organization.
keyId
string[]
required
One or more API key IDs to delete

Global Flags

-h, --help
boolean
Print help information and exit