# db export

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

---
Export a database snapshot from Turso to a SQLite file.

This command exports a snapshot of the current generation of a Turso database to a local SQLite file. Note that the exported file may not contain the latest changes. Use SDK to sync the database after exporting to ensure you have the most recent version.

```bash
turso db export <database> [flags]
```

## Flags

| Flag | Description |
| - | - |
| `--output-file` | Specify the output file name (default: `<database>.db`) |
| `--overwrite` | Overwrite output file if it exists |
| `--with-metadata` | Include metadata in the export |
| `-h`, `--help` | Help for export |
