> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudx.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 安装

> 在 macOS、Windows 和 Linux 上安装 CloudX CLI。

# 安装

本页介绍按平台划分的当前 CloudX CLI 安装方式。

## macOS

CloudX CLI 当前通过 [Homebrew](https://brew.sh) 在 macOS 上提供。

支持的 macOS 平台：

* Apple Silicon（`arm64`）
* Intel（`amd64`）

### 通过 Homebrew 安装

注册 CloudX 的 Homebrew 仓库并安装 CLI：

```bash theme={null}
brew tap cloudx-io/cloudx
brew install cloudx
```

### 升级

安装最新可用的 CLI 版本：

```bash theme={null}
brew update
brew upgrade cloudx
```

当 CloudX API 返回已有更新版本的 CLI 时，旧版 CLI 可能会在命令结束后打印升级提示。运行上面的 Homebrew 升级命令后，可使用 `cloudx --version` 检查当前版本。

### 卸载

移除 CLI：

```bash theme={null}
brew uninstall cloudx
```

## Windows

从 [此处](https://github.com/cloudx-io/cloudx-cli/releases) 下载最新的 Windows 二进制文件。

Windows 包管理器支持即将推出。

## Linux

从 [此处](https://github.com/cloudx-io/cloudx-cli/releases) 下载最新的 Linux 二进制文件。

Linux 包管理器支持即将推出。

## 验证安装

确认 CLI 已在您的机器上可用：

```bash theme={null}
cloudx --version
```

也可以打印根帮助信息：

```bash theme={null}
cloudx --help
```

## 后续步骤

* [CloudX CLI 概览](/zh/cli)
* [身份认证命令](/zh/cli/authentication)
* [报表命令](/zh/cli/reporting)
* [配置命令](/zh/cli/configuration)
* [示例](/zh/cli/examples)
