# Quickstart

> Welcome to Turso Cloud! Get started in minutes.
> Canonical HTML: https://tursodb.cn/docs/quickstart/
> Upstream Source (MIT): https://docs.turso.tech/quickstart
> Language: en

---
**In this quickstart you will learn how to:**

1. Install the Turso CLI
2. Signup to Turso Cloud
3. Create your first Turso Cloud database
4. Connect to Database Shell

**1. Install the Turso CLI**

We'll be using the Turso CLI throughout this quickstart to manage databases and connect to the database shell.

```bash macOS
brew install tursodatabase/tap/turso
```

```bash Linux
curl -sSfL https://get.tur.so/install.sh | bash
```

```bash Windows (WSL)
curl -sSfL https://get.tur.so/install.sh | bash
```

**2. Signup to Turso Cloud**

The next command will open your browser to sign up:

```bash Signup
turso auth signup
```

```bash Login
turso auth login
```

**3. Create a Database**

Turso Cloud hosts two SQLite-compatible engines: [Turso](/docs/tursodb/quickstart/), with concurrent writes and multi-user access built in, and [libSQL](/docs/libsql/). Create your first Turso database with the name `my-db`:

```bash
turso db create my-db --tursodb
```

To create a libSQL database instead, omit the `--tursodb` flag:

```bash
turso db create my-db
```

You can inspect your new database using the following command:

```bash
turso db show my-db
```

**4. Connect to Database Shell**

Congratulations, you created a database! Now connect to it with the `shell` command:

```bash
turso db shell my-db
```

<div class="doc-callout doc-callout-info"><div class="doc-callout-title">NOTE</div><div class="doc-callout-body">

Replace `my-db` with the name of your database if you named it differently.

</div></div>


<details class="doc-accordion"><summary>Create table</summary><div class="doc-accordion-body">

Now create a table for `users` using SQL:

```sql
CREATE TABLE users (
  ID INTEGER PRIMARY KEY AUTOINCREMENT,
  name TEXT
);
```

</div></details>


<details class="doc-accordion"><summary>Insert into new table</summary><div class="doc-accordion-body">

Then insert a row into the `users` table:

```sql
INSERT INTO users (name) VALUES ('Iku');
```

</div></details>


<details class="doc-accordion"><summary>Select all rows from table</summary><div class="doc-accordion-body">

Finally, query for all `users`:

```sql
SELECT * FROM users;
```

</div></details>


When you're ready to move onto the next step, you'll want to to quit the shell:

```sql
.quit
```

**5. Connect your application to your database**

You're now ready to connect your application to your database. Pick from one of the SDKs below to continue:

<div class="doc-cards">
<a class="doc-card" href="/docs/sdk/ts/quickstart/"><div class="doc-card-title"><span>TypeScript</span><span class="doc-card-arrow" aria-hidden="true">→</span></div></a>
<a class="doc-card" href="/docs/sdk/rust/quickstart/"><div class="doc-card-title"><span>Rust</span><span class="doc-card-arrow" aria-hidden="true">→</span></div></a>
<a class="doc-card" href="/docs/sdk/go/quickstart/"><div class="doc-card-title"><span>Go</span><span class="doc-card-arrow" aria-hidden="true">→</span></div></a>
<a class="doc-card" href="/docs/sdk/python/quickstart/"><div class="doc-card-title"><span>Python</span><span class="doc-card-arrow" aria-hidden="true">→</span></div></a>
<div class="doc-card doc-card-static"><div class="doc-card-title"><span>Android</span></div></div>
<a class="doc-card" href="/docs/sdk/swift/quickstart/"><div class="doc-card-title"><span>Swift</span><span class="doc-card-arrow" aria-hidden="true">→</span></div></a>
<a class="doc-card" href="/docs/sdk/php/quickstart/"><div class="doc-card-title"><span>PHP</span><span class="doc-card-arrow" aria-hidden="true">→</span></div></a>
<div class="doc-card doc-card-static"><div class="doc-card-title"><span>Ruby</span></div></div>
<div class="doc-card doc-card-static"><div class="doc-card-title"><span>Ruby on Rails</span></div></div>
<div class="doc-card doc-card-static"><div class="doc-card-title"><span>C</span></div></div>
</div>
<div class="doc-cards">

</div>
