{
  "slug": "turso-db-shell-connects-to-local-databases-by-name-2e43af559b65",
  "title": "turso db shell connects to local databases by name",
  "tools": [
    "turso"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-21T07:30:08.000Z",
  "announced_at": "2026-01-21T07:30:08.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "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.",
    "examples": [
      "turso db shell sunny-doomsday"
    ],
    "gotchas": [
      "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."
    ]
  },
  "why_it_matters": "Connect to a local database server by database name while working on a repository.",
  "before": "Specify the full local URL, for example `turso db shell http://sunny-doomsday-local-user.localhost:9090`.",
  "sources": [
    "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"
  ],
  "rank": 0.93026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-864e64454851c892-0:gate",
    "evidence_hash": "b86db99daa74a806e6a201975d42147aa8e1879c06f7deb5805a646a0875da1e"
  },
  "review": {
    "draft_hash": "da5e214727c08502d32c64f9a4686ba4328809f12e29f241a5742e2e122de7be",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
