Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

auth

Manage API key authentication. An API key is optional — without one, requests are rate-limited.

zora auth [command]

Subcommands

SubcommandDescription
auth configureSave an API key
auth statusCheck current authentication status

Get an API Key

Get a key at zora.co/settings/developer. The key is stored at ~/.config/zora/config.json with restricted permissions.

Examples

Save an API key

npx @zoralabs/cli auth configure
 Enter your Zora API key: ********
 
 API key saved to ~/.config/zora/config.json

Check authentication status

npx @zoralabs/cli auth status
 Authenticated
 
 Key     f7c3502c...3458
 Source  ~/.config/zora/config.json

JSON output

npx @zoralabs/cli auth status --json
{
  "authenticated": true,
  "key": "f7c3502c...3458",
  "source": "~/.config/zora/config.json"
}

When no key is configured:

{
  "authenticated": false
}

Environment Variable

The ZORA_API_KEY environment variable takes precedence over the config file:

export ZORA_API_KEY=your-key-here
npx @zoralabs/cli auth status --json
{
  "authenticated": true,
  "key": "your-key...here",
  "source": "ZORA_API_KEY"
}