Skip to main content

Profiles

The CLI supports multiple named configurations called profiles. Each profile stores its own API key, so you can switch between personal, staging, and production accounts.
See bunny config for creating, inspecting, and deleting profiles.

Global options

These flags are available on every command.

Output formats

Use --output (or -o) to control how results are printed. This is particularly useful for scripting or piping into other tools.

Environment variables

Database-specific

Some bunny db commands also read from a .env file walked up from the current directory: Both variables can be written automatically by bunny db create --save-env or bunny db quickstart.

Shell completion

Generate a shell completion script with bunny completion and add the output to your shell profile to enable tab completion.

Resolving credentials

When a command needs an API key, the CLI resolves it in this order:
  1. --api-key flag
  2. BUNNYNET_API_KEY environment variable
  3. API key stored in the selected profile (--profile or default)
If none of those are set, the command will prompt you to run bunny login.