Turso CLI for creating, replicating, querying, importing, and operating Turso databases, groups, and orgs.
$brew install tursodatabase/tap/turso
AI Analysis
Turso CLI is Turso's official command-line client for provisioning and operating Turso/libSQL databases, groups, and organization settings. It also includes direct SQL access through turso db shell and a dev command that starts a local sqld server for local development.
What It Enables
- Create, import, export, destroy, and replicate Turso databases, then inspect usage, instances, URLs, and config without opening the dashboard.
- Generate database or API tokens, manage groups, org members, invites, audit logs, and transfer databases or groups between organizations.
- Run one-off SQL queries or an interactive SQL shell against a Turso database or replica URL, and start a local
sqldserver against an ephemeral or file-backed SQLite database.
Agent Fit
- The CLI exposes real inspect and mutation coverage with ordinary subcommands and flags, so it fits shell-driven inspect/change/verify loops.
- Headless login guidance plus token-based auth and one-shot
turso db shell <db> <sql>usage make unattended workflows possible when credentials are already in place. - Automation is weaker than the current row suggests: repo docs and command definitions show text and table output but no documented
--jsonor--outputmode, so parsing often means scraping human-oriented stdout.
Caveats
- Default login opens a browser, so CI and remote agents need headless auth flow or preprovisioned tokens.
- Some commands still prompt in TTY contexts or require confirmations unless you pass the relevant flags.