# Quickstart

> Quickstart — Turso documentation.
> Canonical HTML: https://tursodb.cn/docs/tursodb/quickstart/
> Upstream Source (MIT): https://docs.turso.tech/tursodb/quickstart
> Language: en

---
**1. Install**

<div class="doc-tabs" data-doc-tabs>
<div class="doc-tab-list" role="tablist">
<button type="button" role="tab" class="doc-tab-btn is-active" aria-selected="true" data-tab-idx="0">macOS / Linux</button>
<button type="button" role="tab" class="doc-tab-btn" aria-selected="false" data-tab-idx="1">Windows</button>
</div>
<div class="doc-tab-panel is-active" role="tabpanel" data-tab-panel="0">

```bash
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/turso/releases/latest/download/turso_cli-installer.sh | sh
```

</div>
<div class="doc-tab-panel" role="tabpanel" data-tab-panel="1" hidden>

Run the following command in PowerShell:

```powershell
irm https://github.com/tursodatabase/turso/releases/latest/download/turso_cli-installer.ps1 | iex
```

Alternatively, you can [download the Windows executable](https://github.com/tursodatabase/turso/releases/latest) and add it to your PATH.

</div>
</div>


**2. Launch**

Then launch the interactive shell:

```bash
tursodb
```

This will start the Turso interactive shell where you can execute SQL statements:

```
Turso
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database
turso>
```

**3. Execute**

Now you can execute SQL statements in the interactive shell:

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

Create a table for users:

```sql
CREATE TABLE users (id INT, username TEXT);
```

</div></details>


<details class="doc-accordion"><summary>Insert data</summary><div class="doc-accordion-body">

Insert some data into the users table:

```sql
INSERT INTO users VALUES (1, 'alice');
INSERT INTO users VALUES (2, 'bob');
```

</div></details>


<details class="doc-accordion"><summary>Query data</summary><div class="doc-accordion-body">

Query all users from the table:

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

This will return:

```
1|alice
2|bob
```

</div></details>


## Experimental Features

You can enable experimental features when launching `tursodb` using various flags such as `--experimental-encryption`, `--experimental-strict`, and `--experimental-views`. MVCC needs no flag: it is production ready and enabled with `PRAGMA journal_mode = mvcc`.

**Note:** These features are not production ready, so do not use them for critical data right now.

For a complete list of available flags and options, see the [Turso manual](https://github.com/tursodatabase/turso).
