# 简介

> 简介 — Turso 文档。
> Canonical HTML: https://tursodb.cn/zh-cn/docs/cli/introduction/
> Upstream Source (MIT): https://docs.turso.tech/cli/introduction
> Language: zh-CN

---
Turso CLI 为你提供了从命令行管理数据库、API 令牌、邀请用户以及启动数据库 shell 所需的一切功能。如果你正在等待迁移运行完成，还有一个 relax 命令可供使用。

你还可以使用 [Platform API](https://docs.turso.tech/api-reference) 以编程方式管理你的 Turso 账户，包括组、数据库、组织和邀请。

**1. 安装**

首先安装 Turso CLI：

```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. 身份验证**

现在注册或登录：

```bash Signup
turso auth signup
```

```bash Login
turso auth login
```

```bash Signup (WSL)
turso auth signup --headless
```

```bash Login (WSL)
turso auth login --headless
```

**3. 操作**

Turso CLI 提供以下命令：

| 命令 | 描述 |
| - | - |
| [`auth`](https://docs.turso.tech/cli/auth) | 进行身份验证并管理 API 令牌。 |
| [`contact`](https://docs.turso.tech/cli/contact) | 提交你的反馈、想法，并与团队预约会议。 |
| [`db`](https://docs.turso.tech/cli/db) | 创建和管理数据库、访问令牌，并连接到 shell。 |
| `dev` | 在[本地](/zh-cn/docs/local-development/)运行 Turso 用于开发。 |
| [`group`](https://docs.turso.tech/cli/group) | 为具有共享位置的数据库创建组。 |
| [`org`](https://docs.turso.tech/cli/org) | 管理计费并邀请成员。 |
| [`plan`](https://docs.turso.tech/cli/plan) | `overages`、`select`、`show`、`upgrade` |
| [`quickstart`](/zh-cn/docs/quickstart/) | 在 5 分钟内开始使用 Turso。 |
| `relax` | 抽出一些时间，与 Turso 一起放松一下。 |
| `update` | 使用一条命令将 Turso CLI 更新到最新版本。 |
