The
[database-name] argument is optional. If you don’t provide a name, the Turso team will use the name of your project.If you have more than one group, you will need to pass the
--group flag.Flags
Examples
The examples below outline the most common use cases for thedb create command.
Create database in a specific group
You can create a new database in a specific group using the--group flag:
Create database from SQLite file
You can create a new Turso database from an existing SQLite file using the--from-file flag:
The file size is limited to 2GB.
Create database from SQLite dump
You can create a new database using the output of.dump using the --from-dump flag:
Create database from another existing database
You can create a new Turso database from an existing database using the--from-db flag:
Create database from a point in time
You can create a new Turso database from an existing database at a specific point in time using the--from-db and --timestamp flags:
Create database from a CSV file
You can create a new Turso database from a CSV file using the--from-csv flag:
Create a database with extensions enabled
You can create a database with experimental support for SQLite extensions using the--enable-extensions flag:
Using
--enable-extensions will enable extensions on all databases in the group.