Briefing

Introducing the bunny.net CLI

hosting
by Jamie Barton · Bunny.net

Install the CLI with npm install -g @bunny.net/cli, log in with bunny login, and use bunny db create or bunny db link to manage databases directly from the terminal.

What to do now

Install the CLI, log in, and run bunny db create to test database creation in your environment.

Summary

bunny.net has released a new command‑line interface (CLI) in public preview that lets developers build and manage the entire bunny.net stack from the terminal. The CLI is installed with npm install -g @bunny.net/cli and authenticates via bunny login, which opens a browser and stores an API key locally. Once authenticated, developers can create databases interactively with bunny db create or pass flags for scripted workflows, and the CLI can automatically link the database to the current project by writing a .bunny/database.json manifest. The tool also supports listing, monitoring, deleting, and checking usage of databases, and it can create read replicas for multi‑region replication to bring data closer to users. In addition to database management, the CLI will soon add support for Edge Scripting, Storage, and Magic Containers, and it already includes an interactive SQL shell that was introduced earlier this month. The public preview invites feedback, bug reports, and pull requests to shape future features.

Key changes

  • CLI installs via npm install -g @bunny.net/cli and authenticates with bunny login, storing API key locally
  • Supports interactive database creation with bunny db create and flag‑based creation for scripts
  • Automatically links a project directory to a database by writing a .bunny/database.json manifest
  • Resolves target database automatically using ID, manifest, BUNNY_DATABASE_URL env var, or interactive picker
  • Provides commands for listing, monitoring, deleting, and checking usage of databases (bunny db list, delete, usage)
  • Enables multi‑region replication with read replicas to reduce latency for users
  • Includes an interactive SQL shell (bunny db shell) for direct query execution
  • Future support for Edge Scripting, Storage, and Magic Containers is planned

Affects

internal enterprise

Customer impact

Analyzing matches…

Ask about this story

Impact on an agency? Which customers? Compare historically Risks of waiting