Skip to main content

cast apikey

Manage API keys for programmatic access to the Castari API. Castari supports multiple named API keys per user.

Subcommands

CommandDescription
cast apikey listList all API keys
cast apikey createCreate a new API key
cast apikey revoke <key-id>Revoke an API key

cast apikey list

List all API keys for the authenticated user.

Usage

cast apikey list

Output

Displays a table with key ID, name, prefix, creation date, and last used date.

cast apikey create

Create a new named API key.

Usage

cast apikey create [--name <name>]

Options

OptionDescriptionDefault
--name <name>A descriptive name for the keyDefault

Example

cast apikey create --name "CI/CD Pipeline"
The full API key is only displayed once at creation. Store it securely — you will not be able to see it again.

cast apikey revoke

Revoke an existing API key.

Usage

cast apikey revoke <key-id>

Arguments

ArgumentDescriptionRequired
key-idThe ID of the API key to revokeYes

Example

cast apikey revoke ak_abc123

See Also