CLI - ComfyUI☍
ComfyUI☍
ComfyUI 是一个基于节点流的 Stable Diffusion GUI。
安装 ComfyUI☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录,默认为配置文件中的路径。--pytorch-mirror-type <类型>: 设置使用的 PyTorch 镜像源类型。--custom-pytorch-package <包名>: 自定义 PyTorch 软件包版本声明。--custom-xformers-package <包名>: 自定义 xFormers 软件包版本声明。--no-pypi-mirror: 不使用国内 PyPI 镜像源。--no-uv: 不使用 uv 安装 Python 软件包。--no-github-mirror: 不使用 Github 镜像源。--custom-github-mirror <URL>: 自定义 Github 镜像源。--no-pre-download-extension: 禁用预下载 ComfyUI 扩展。--no-pre-download-model: 禁用预下载模型。--model-resource: 模型下载源类型 (默认:modelscope)。
更新 ComfyUI☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--no-github-mirror: 不使用 Github 镜像源。--custom-github-mirror <URL>: 自定义 Github 镜像源。
检查运行环境☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--no-github-mirror: 不使用 Github 镜像源。--install-conflict: 自动安装冲突组件依赖。--interactive: 启用交互模式。--no-uv: 不使用 uv。--custom-github-mirror <URL>: 自定义 Github 镜像源。--no-pypi-mirror: 不使用国内 PyPI 镜像源。
启动 ComfyUI☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--launch-args <参数>: 启动参数 (请使用引号包裹,例如"--theme dark")。--no-hf-mirror: 禁用 HuggingFace 镜像源。--custom-hf-mirror <URL>: 自定义 HuggingFace 镜像源。--no-github-mirror: 禁用 Github 镜像源。--custom-github-mirror <URL>: 自定义 Github 镜像源。--no-pypi-mirror: 禁用 PyPI 镜像源。--no-cuda-malloc: 禁用 CUDA Malloc 优化。--no-uv: 不使用 uv。--interactive: 启用交互模式。--install-conflict: 自动安装冲突组件依赖。--no-check-env: 不检查运行环境完整性。
版本管理 GUI☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--no-github-mirror: 不使用 Github 镜像源。--custom-github-mirror <URL>: 自定义 Github 镜像源。
扩展管理 (Custom Node)☍
安装扩展☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--url <链接>: (必填) 扩展下载链接。--no-github-mirror: 不使用 Github 镜像源。--custom-github-mirror <URL>: 自定义 Github 镜像源。
设置扩展状态☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--name <名称>: (必填) 扩展名称。--enable: 启用扩展。--disable: 禁用扩展。
列出扩展☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。
更新扩展☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--no-github-mirror: 不使用 Github 镜像源。--custom-github-mirror <URL>: 自定义 Github 镜像源。
卸载扩展☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--name <名称>: (必填) 扩展名称。
模型管理☍
从模型库安装模型☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--source <源>: 模型下载源类型 (默认:modelscope)。--name <名称>: 模型名称。--index <索引>: 模型索引。--downloader <工具>: 下载工具 (默认:aria2)。--interactive: 启用交互模式。--list-only: 列出模型列表并退出。
从链接安装模型☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--url <链接>: (必填) 模型下载地址。--type <类型>: (必填) 模型类型。--downloader <工具>: 下载工具 (默认:aria2)。
列出模型☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。
卸载模型☍
- 高级选项:
--comfyui-path <路径>: ComfyUI 根目录。--name <名称>: (必填) 模型名称。--type <类型>: 模型类型。--interactive: 启用交互模式。
重装 PyTorch☍
- 高级选项:
--name <名称>: PyTorch 版本组合名称。--index <索引>: PyTorch 版本组合索引值。--no-pypi-mirror: 不使用国内 PyPI 镜像源。--no-uv: 不使用 uv 安装 PyTorch 软件包。--interactive: 启用交互模式。--list-only: 列出 PyTorch 列表并退出。