- Local Turso database — local database file, no server needed (recommended)
- Turso CLI — managed libSQL server
Using a dump locally
You can always dump your production database and use it locally for development:1
Create a dump using the Turso CLI
2
Create SQLite file from dump
3
Connect to the file
You can use either of the methods below with the
local.db file, or you can use a new file name if you prefer to create a database from scratch.Local Turso database
Whenever your application runs against a local database, we recommend the Turso packages. They are fully SQLite-compatible — they open existing SQLite files — and run entirely in your process, no server needed:You don’t need to provide an
authToken in development.It’s recommended to use environment variables for both
url and authToken for a seamless developer experience.Turso CLI
If you’re developing against a libSQL database and use libSQL-specific features like extensions, you should use the Turso CLI:url option:
JavaScript
If you want to persist changes, or use a production dump, you can pass the
--db-file flag with the name of the SQLite file:
Turso Cloud database
If you already have a database created on Turso Cloud, you can use that same one in development by passing theurl option to your SDK.
Connecting a GUI
During development you can easily connect to a SQLite, libSQL, or Turso database using one of the tools below:- Beekeeper Studio — macOS, Linux, and Windows
- Outerbase — Runs in the browser
- TablePlus — macOS, Windows, and Linux
- Dataflare — Paid (with limited free version) macOS, Windows, and Linux
- Outerbase Studio - Runs in the browser
- DBeaver - macOS, Windows, and Linux