# 安裝

> 瞭解如何在 Mac、Linux 及 Windows 上安裝 Turso CLI。
> Canonical HTML: https://tursodb.cn/zh-tw/docs/cli/installation/
> Upstream Source (MIT): https://docs.turso.tech/cli/installation
> Language: zh-TW

---
## 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
```
