Manage API keys from the CLI.
kernel api-keys create
Create an API key. By default, the new key is org-wide. Pass --project-id to create a key whose own access is scoped to that project.
--project-id controls the access scope of the new API key. The global --project flag only scopes the CLI request you’re making.
kernel api-keys list
List API keys in the authenticated organization. API keys are masked.
kernel api-keys get <id>
Show one API key by ID. The response includes the masked key and metadata, not the plaintext key.
kernel api-keys update <id>
Rename an API key.
kernel api-keys rotate <id>
Issue a replacement API key. The rotated key keeps working for a grace period so you can migrate callers without downtime.
Save the new plaintext key when you rotate it. Kernel won’t return it again.
kernel api-keys delete <id>
Delete an API key.
Aliases
You can also use kernel api-key, kernel apikeys, or kernel apikey.