# 安装

> 了解如何在 Mac、Linux 和 Windows 上安装 Turso CLI。
> Canonical HTML: https://tursodb.cn/zh-cn/docs/cli/installation/
> Upstream Source (MIT): https://docs.turso.tech/cli/installation
> Language: zh-CN

---
## macOS

要在 macOS 上安装 Turso CLI，我们建议使用 Homebrew：

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

如果你不使用 Homebrew，可以使用以下命令执行一个安装 CLI 的 shell 脚本：

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

## Linux

运行以下命令来执行一个安装 CLI 的 shell 脚本：

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

## Windows

在 Windows 上安装 Turso CLI 需要你先安装 [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)。

安装 WSL 后，在 PowerShell 中运行以下命令：

```bash
wsl
```

然后你就可以执行脚本来安装 Turso CLI：

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

## 验证安装

你必须打开一个新的 shell，然后使用以下命令验证安装：

```bash
turso
```
