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

# 安装CLI

> 快速的方式开始使用活水插件

最快 1 分钟完成安装，开始使用活水插件。

## 什么是 CLI？

CLI（Command Line Interface，命令行界面）是通过文本命令与计算机交互的方式。

**42plugin CLI 的意义**：

* 快速安装和管理插件
* 跨项目同步插件配置
* 自动化插件发布流程
* 与 AI 编码助手无缝集成

## 步骤 1：安装 42plugin CLI

<Tabs>
  <Tab title="macOS / Linux">
    打开终端（按 `Command + 空格`，输入 `Terminal`），执行：

    ```bash theme={null}
    curl -fsSL https://get.42plugin.com/cli | bash
    ```
  </Tab>

  <Tab title="Windows">
    打开 PowerShell（按 `Win + X`，选择 "终端"），执行：

    ```powershell theme={null}
    irm https://get.42plugin.com/cli.ps1 | iex
    ```
  </Tab>
</Tabs>

## 步骤 2：验证安装

```bash theme={null}
42plugin --version
```

看到版本号即表示安装成功！

## 下一步

<CardGroup cols={2}>
  <Card title="配套软件" icon="puzzle-piece" href="/install/tools">
    安装 Claude Code 等配套工具
  </Card>

  <Card title="登录账号" icon="key" href="/install/cli-auth">
    使用 42plugin auth 登录
  </Card>
</CardGroup>
