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 delete <id>
Delete an API key.
Aliases
You can also use kernel api-key, kernel apikeys, or kernel apikey.