安装指南
📦 安装 CLI-Anything
Section titled “📦 安装 CLI-Anything”本页介绍两种使用方式:CLI-Hub(推荐) 和 从源码构建。
方式一:CLI-Hub(推荐,一行命令)
Section titled “方式一:CLI-Hub(推荐,一行命令)”CLI-Hub 是 CLI-Anything 的包管理器,让你一行命令浏览、安装、更新所有社区构建的 CLI。
安装 CLI-Hub
Section titled “安装 CLI-Hub”pip install cli-anything-hub要求:Python 3.10+
cli-hub --version方式二:从源码构建(适合开发者)
Section titled “方式二:从源码构建(适合开发者)”| 依赖 | 版本要求 | 安装方式 |
|---|---|---|
| Python | ≥3.10 | python.org |
| Git | 最新版 | git-scm.com |
| (可选)Claude Code / OpenClaw | - | 参见各平台文档 |
git clone https://github.com/HKUDS/CLI-Anything.gitcd CLI-Anythingpip install -e .🖥️ 各平台注意事项
Section titled “🖥️ 各平台注意事项”Windows
Section titled “Windows”# 安装 Git for Windows(包含 bash,Claude Code 需要)# 下载:https://git-scm.com/download/win
# 或使用 WSLwsl --install⚠️ 注意:Claude Code 通过
bash执行命令,Windows 用户必须安装 Git for Windows 或启用 WSL,否则会出现cygpath: command not found错误。
# 使用 Homebrew 安装依赖
# 克隆并安装git clone https://github.com/HKUDS/CLI-Anything.gitcd CLI-Anythingpip3 install -e .# Debian/Ubuntusudo apt updatesudo apt install python3.10 git
# 克隆并安装git clone https://github.com/HKUDS/CLI-Anything.gitcd CLI-Anythingpip install -e .✅ 验证安装
Section titled “✅ 验证安装”# 方式一验证cli-hub list
# 方式二验证/cli-anything --help如果看到帮助信息,说明安装成功!
💡 提示:如果你只是想使用现成的 CLI(而不是自己生成),强烈推荐方式一(CLI-Hub),无需本地构建,一行命令搞定。