Learn how to import your existing SQLite database to Turso.
Open your SQLite database
Set WAL journal mode
wal
to confirm the change was successful.Checkpoint and truncate the WAL file
Verify the journal mode
wal
.Close the database
Install the Turso CLI
Import your SQLite Database
db import
command:Connect to your database
Signup or Login using the Turso CLI
Create a new Platform API Token
Retrieve your account or organization slug
slug
of your account or organization using using the Turso CLI:Create a Database for Import
seed
parameter with "type": "database_upload"
indicates that you plan to upload a database file. If you don’t proceed to upload a database, this database will count towards your quota, but will not be usable.Create a Database Token
Upload Your SQLite Database
Authorization
header uses the database token you generated in the
previous step, not your Platform API token.