cast apikey
Manage API keys for programmatic access to the Castari API. Castari supports multiple named API keys per user.
Subcommands
| Command | Description |
|---|
cast apikey list | List all API keys |
cast apikey create | Create 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
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
| Option | Description | Default |
|---|
--name <name> | A descriptive name for the key | Default |
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
| Argument | Description | Required |
|---|
key-id | The ID of the API key to revoke | Yes |
Example
cast apikey revoke ak_abc123
See Also