home / databases / turso

Turso CLI

Official · Turso
287

Turso CLI for creating, replicating, querying, importing, and operating Turso databases, groups, and orgs.

$brew install tursodatabase/tap/turso
Language
Go
Stars
287
Category
Databases
Agent
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 sqld server 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 --json or --output mode, 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.