> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 快速入门

### 概述

`comfy-cli` 是一个 [命令行工具](https://github.com/Comfy-Org/comfy-cli)，可以帮助更轻松地安装和管理 Comfy。

### 安装 CLI

<CodeGroup>
  ```bash pip theme={null}
  pip install comfy-cli
  ```

  ```bash homebrew theme={null}
  brew tap Comfy-Org/comfy-cli
  brew install comfy-org/comfy-cli/comfy-cli
  ```
</CodeGroup>

获取 shell 自动补全提示：

```bash theme={null}
comfy --install-completion
```

### 安装 ComfyUI

使用任意高于 3.9 的 Python 版本创建一个虚拟环境。

<CodeGroup>
  ```bash conda theme={null}
  conda create -n comfy-env python=3.11
  conda activate comfy-env
  ```

  ```bash venv theme={null}
  python3 -m venv comfy-env
  source comfy-env/bin/activate
  ```
</CodeGroup>

安装 ComfyUI

```bash theme={null}
comfy install
```

<Warning>您仍然需要根据您的 GPU 安装 CUDA 或 ROCm。</Warning>

### 运行 ComfyUI

```bash theme={null}
comfy launch
```

### 管理自定义节点

```bash theme={null}
comfy node install <NODE_NAME>
```

我们使用 `cm-cli` 来安装自定义节点。更多信息请参阅 [文档](https://github.com/ltdrdata/ComfyUI-Manager/blob/main/docs/en/cm-cli.md)。

### 管理模型

使用 `comfy-cli` 下载模型非常简单。只需运行以下命令：

```bash theme={null}
comfy model download <url> models/checkpoints
```

### 贡献

我们鼓励对 comfy-cli 的贡献！如果您有建议、想法或错误报告，请在我们的 [GitHub 仓库](https://github.com/Comfy-Org/comfy-cli/issues) 上提交问题。如果您想贡献代码，请 fork 仓库并提交 pull request。

有关更多详细信息，请参阅 [开发指南](https://github.com/Comfy-Org/comfy-cli/blob/main/DEV_README.md)。

### 数据分析

我们会跟踪 CLI 的使用情况以改进用户体验。您可以通过运行以下命令禁用此功能：

```bash theme={null}
comfy tracking disable
```

要重新启用跟踪，请运行：

```bash theme={null}
comfy tracking enable
```
