← Back to CLIs
Melvynx

turso

Manage Turso SQLite databases via CLI - databases, groups, tokens, replicas. Use when user mentions 'turso', 'libsql', 'sqlite edge', or wants to manage Turso databases.

Install

$ npx api2cli install turso

Details

Skill type: Official CLI
Auth type: bearer
Version: 1.0.0
Author: Melvynx
Views: 0

README

turso

Setup

macOS:

brew install tursodatabase/tap/turso

Linux/WSL:

curl -sSfL https://get.tur.so/install.sh | bash

Verify installation:

turso --version

Always use --output json flag when calling commands programmatically (where supported).

Authentication

turso auth login

Get auth token:

turso auth token

Resources

Databases

CommandDescription
turso db listList all databases
turso db create <name>Create a new database
turso db create <name> --group <group>Create database in a specific group
turso db destroy <name>Destroy a database
turso db show <name>Show database details and URL
turso db shell <name>Open interactive SQL shell
turso db shell <name> "SELECT * FROM users"Run a SQL query directly
turso db inspect <name>Inspect database size and usage
turso db tokens create <name>Create an auth token for a database
turso db tokens create <name> --expiration noneCreate a non-expiring token

Groups

CommandDescription
turso group listList all groups
turso group create <name>Create a new group
turso group create <name> --location <location>Create group in specific location
turso group add-location <name> <location>Add a replica location to a group
turso group remove-location <name> <location>Remove a replica location
turso group destroy <name>Destroy a group

Organizations

CommandDescription
turso org listList organizations
turso org switch <name>Switch to a different organization

Plan

CommandDescription
turso plan showShow current plan details
turso plan upgradeUpgrade your plan

Global Flags

FlagDescription
--output jsonOutput result as JSON
--no-colorDisable colored output
Sponsors