JSPM

bunny-database-shell

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 278
  • Score
    100M100P100Q8102F
  • License MIT

Connect to a Bunny Database shell

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bunny-database-shell) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    bunny-database-shell

    Connect to a Bunny Database shell.

    Prerequisites

    Install

    npm install -g bunny-database-shell

    Or run directly with npx:

    npx bunny-database-shell

    Usage

    Connection values are resolved in order: CLI flags, .env file, then interactive prompt.

    Open an interactive shell

    Pass your connection details as flags:

    bunny-database-shell --url libsql://your-database.lite.bunnydb.net --auth-token your-token

    Or use a .env file and the shell will connect automatically:

    bunny-database-shell

    If no flags or .env values are found, you'll be prompted to enter them.

    Execute a single statement

    Run a SQL statement and exit without entering the interactive shell:

    bunny-database-shell -e "SELECT * FROM users"
    bunny-database-shell "SELECT * FROM users"

    .env file

    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.