Connect to a Bunny Database shell.
npm install -g bunny-database-shellOr run directly with npx:
npx bunny-database-shellConnection values are resolved in order: CLI flags, .env file, then interactive prompt.
Pass your connection details as flags:
bunny-database-shell --url libsql://your-database.lite.bunnydb.net --auth-token your-tokenOr use a .env file and the shell will connect automatically:
bunny-database-shellIf no flags or .env values are found, you'll be prompted to enter them.
Run a SQL statement and exit without entering the interactive shell:
bunny-database-shell -e "SELECT * FROM users"
bunny-database-shell "SELECT * FROM users"Create a .env file in your working directory:
BUNNY_DB_URL=libsql://your-database.lite.bunnydb.net
BUNNY_DB_TOKEN=your-token
This lets you run bunny-database-shell without passing flags every time.