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.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
Somebunny 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 withbunny 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:--api-keyflagBUNNYNET_API_KEYenvironment variable- API key stored in the selected profile (
--profileordefault)
bunny login.