lizard keys
Create, list, and delete API keys. Alias: lizard apikey.
Usage
lizard keys create <name> [flags]
lizard keys list
lizard keys rm <name-or-id> [flags]API keys start with liz_. Use one wherever you can’t log in through a browser:
LIZARD_TOKENorLIZARD_API_KEYfor the CLI in CIlizard login --token liz_…on a machineLIZARD_API_KEYfor the Lizard SDKlizard sandbox create --with-token liz_…to sign inlizardinside a sandbox; see keys in a sandbox
Subcommands
lizard keys create <name>
Create a key and print it once. Copy it then; Lizard does not show it again. A key without a scope has full access to every workspace and project you can reach. Scope it with these flags, each repeatable:
| Flag | Description |
|---|---|
-p, --project <id> | Limit the key to this project (name, slug, or ID) |
-w, --workspace <id> | Limit the key to this workspace (name, slug, or ID) |
A scoped key works only inside its projects or workspaces. It can’t:
- see billing, the plan, cards or account-wide usage
- create, list or delete API keys, so
lizard keysfails with it - create a workspace, rename or delete its workspace, or change workspace limits or resale prices
- see or manage workspace or project members
- point a service at a private GitHub repository, unless an app in its scope already builds from it
Signed in with a scoped key, lizard whoami shows the key’s scopes, not the account behind it. If the workspace owner set resale prices, the key sees those prices.
lizard keys list
List your keys with a short preview, scope, creation time, and last use (alias ls). The preview is not the start of the key, so match keys by name or ID.
lizard keys rm <name-or-id>
Delete a key (alias delete). If two keys share a name, delete by ID.
| Flag | Description |
|---|---|
-y, --yes | Skip confirmation |
Examples
Create a key for CI
lizard keys create github-actions --project my-projectStore the printed key as a CI secret named LIZARD_TOKEN.
Sign in lizard inside a sandbox
lizard sandbox create --with-token liz_xxxThe sandbox gets a new key of its own, limited to the sandbox’s project and deleted with the sandbox. It shows in lizard keys list as sandbox-session:<sandbox-id>. The liz_ key you pass only authorizes the request and never enters the sandbox. With a bare --with-token, the CLI uses the key you are signed in with, which must be a liz_ key.
Delete a key
lizard keys rm github-actions --yesSee also
- lizard login — log in with a key on a machine
- JSON & Automation — using the CLI from CI
- lizard sandbox —
--with-tokensigns inlizardinside a sandbox with a key of its own
Updated