turso db shell connects to local databases by name
Introduced 2026-01-21 · score 0.93
HOW TO USE IT
When the database is running locally, connect by name with `turso db shell sunny-doomsday`; in v1.0.16, the CLI falls back to HTTP for local databases.
turso db shell sunny-doomsdayWHY THIS HELPS
Connect to a local database server by database name while working on a repository.
BEFORE THIS CHANGE
Specify the full local URL, for example `turso db shell http://sunny-doomsday-local-user.localhost:9090`.
REQUIREMENTS AND LIMITATIONS
- Version: v1.0.16
- database-name (required): Database name or replica URL to connect to.
- sql: Optional SQL command to execute instead of opening an interactive shell.
- Prerequisite: For a database name, the CLI requires the user to be logged in; authenticate with `turso auth login`.
- The fallback applies when the database is found to be running locally.
FIRST-PARTY EVIDENCE
- https://github.com/tursodatabase/turso-cli/releases/tag/v1.0.16
- https://github.com/tursodatabase/turso-cli/pull/997
- https://github.com/tursodatabase/turso-cli/blob/v1.0.16/internal/cmd/db_shell.go
- https://docs.turso.tech/cli/db/shell
Check the installed version and the source before using it. Entry JSON