Turso CLI
Manage libSQL/SQLite databases, replicas, and groups from the terminal.
Commands
turso-cli db list— List databasesturso-cli db create— Create a new databaseturso-cli db shell— Open a SQL shellturso-cli _ _— Passthrough to turso CLI
Installation
brew install tursodatabase/tap/turso
Authentication
turso auth login
# or set TURSO_API_TOKEN
Usage Examples
- "List my Turso databases"
- "Create a new SQLite database"
- "Open a SQL shell to my database"
- "Get a database token"
Key Commands
# List databases
turso db list
# Create database
turso db create my-database
# Get database info
turso db show my-database
# Create auth token
turso db tokens create my-database
# SQL shell
turso db shell my-database
# Manage groups
turso group list
turso group create my-group --location ord
Key Features
- libSQL/SQLite - Edge database
- Replicas - Global replication
- Groups - Database grouping
- JSON Output - Structured data
- Shell Access - Direct SQL queries