sky project keys
sky project keys manages project-scoped API keys.
Synopsis
bash
sky project keys create --project <slug> [--name <name>]
sky project keys list --project <slug>
sky project keys revoke --project <slug> --id <apiKeyId> [--yes]Project Selection
--project <slug> is required for all subcommands. Run sky project list to see your project slugs.
Subcommands
create
Creates a new project API key and prints the plaintext key once.
The output includes a warning that the key will not be shown again, plus a suggested export SKYSTATE_API_KEY=... line.
If you omit --name, the CLI uses an auto-generated name.
list
Lists the project's API keys with these fields:
- key ID
- name
- prefix
- created at
- last used at
- revoked at
revoke
Revokes a key by ID. The command asks for confirmation in a TTY unless you pass --yes.
Notes
sky project keysdoes not write local files.sky onboardingmay create a project API key for Node.js or curl snippets when you choose that option.