Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Turso CLI

$ turso Official Med Risk
Turso · Database & Data · MIT · macos / linux

Turso CLI manages remote libSQL/SQLite databases, replication groups, auth tokens, and local turso dev development instances. Built in Go as a single binary with scriptable subcommands, though most listing commands emit plain text rather than JSON.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install tursodatabase/tap/turso
CLI vs MCP Decision CLI Preferred vs MCP

turso CLI excels at provisioning databases, creating scoped read-only tokens, and running turso dev locally without MCP overhead.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Clean Go subcommands and TURSO_API_TOKEN support, but lacks a universal --json output flag across listing commands.

  • Supports non-interactive subcommands and TURSO_API_TOKEN; outputs tabular text
Trust & Safety 22 / 25

Supports short-lived and --read-only database tokens; turso db destroy prompts unless --yes is passed.

  • turso db tokens create --read-only --expiration limits blast radius
Setup & Portability 14 / 15

Single Go binary via Homebrew or curl installer on macOS and Linux (WSL on Windows).

  • Static Go binary via tursodatabase/tap/turso
Utility & Efficiency 14 / 15

Streamlines edge SQLite provisioning, schema dumps, and local turso dev emulation.

  • Combines cloud DB management, token minting, and local turso dev
Maintenance & Lineage 9 / 10

Official tursodatabase/turso-cli maintained by Turso under MIT license.

  • Official tursodatabase/turso-cli repository
Docs & Verifiability 8 / 10

Comprehensive CLI documentation with clear command examples.

  • Official docs at docs.turso.tech/cli/introduction

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Auth token saved in ~/.config/turso/settings.json or supplied via TURSO_API_TOKEN.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is MIT open-source; Turso cloud includes a starter free tier with paid plans for higher volume.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Turso CLI Agent Rules
- Prefer `turso db tokens create --read-only` when granting query access.
- Do not invoke `turso db shell` without piping SQL or passing a statement.
- NEVER run `turso db destroy` without explicit human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List all Turso databases
turso db list

Prints existing database names, groups, and libSQL URLs.

Inspect database details and usage
turso db show <db-name>

Displays regions, locations, and connection URL for a single database.

Controlled Writes & Previews

Create a read-only database auth token
turso db tokens create <db-name> --read-only --expiration 1h

Issues a short-lived read-only JWT for safe downstream agent queries.

Strengths for Agents

  • + Built-in --read-only and --expiration flags on db tokens create support least-privilege workflows.
  • + turso dev provides fast local libSQL parity before deploying to edge.
  • + Single binary installs cleanly without language runtime dependencies.

Caveats & Pitfalls

  • ! Most commands lack --json output, requiring table text parsing.
  • ! turso db shell opens an interactive prompt if no SQL argument or stdin is provided.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI