| title | Quickstart |
|---|---|
| description | Welcome to Turso! Get started with Turso in minutes. |
In this quickstart you will learn how to:
- Install the Turso CLI
- Signup to Turso
- Create your first Turso Database
- Connect to Database Shell
We'll be using the Turso CLI throughout this quickstart to manage databases, create replicas in other regions, and connect to the database shell.
brew install tursodatabase/tap/tursocurl -sSfL https://get.tur.so/install.sh | bashcurl -sSfL https://get.tur.so/install.sh | bashThe next command will open your browser to sign up:
turso auth signupturso auth loginNow create your first database in a location closest to you with the name my-db:
turso db create my-dbThe Turso CLI automatically detected your closest region to create a database. It used this location to create a default "group" for your database, which you can inspect using the following command:
turso db show my-dbCongratulations, you created a database! Now connect to it with the shell command:
turso db shell my-dbReplace my-db with the name of your database if you named it differently.
CREATE TABLE users (
ID INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT
);Then insert a row into the users table:
INSERT INTO users (name) VALUES ("Iku");Finally, query for all `users`:
SELECT * FROM users;When you're ready to move onto the next step, you'll want to to quit the shell:
.quitYou're now ready to connect your application to your database. Pick from one of the SDKs below to continue: