| name | comfy-cli |
| description | Install, manage, and run ComfyUI instances. Use when setting up ComfyUI, launching servers, installing/updating/debugging custom nodes, downloading models from CivitAI/HuggingFace, managing workspaces, running API workflows, or troubleshooting node conflicts with bisect. |
| metadata | {"clawdbot":{"emoji":"🎨","requires":{"bins":["comfy"]},"install":[{"id":"uv","kind":"uv","package":"comfy-cli","bins":["comfy"],"label":"Install comfy-cli (uv)"}]}} |
comfy-cli
CLI tool for managing ComfyUI installations, custom nodes, and models.
Quick start
comfy install
comfy launch
comfy node install ComfyUI-Impact-Pack
comfy model download --url "https://civitai.com/api/download/models/12345"
Installation
comfy install
comfy install --nvidia
comfy install --amd
comfy install --m-series
comfy install --cpu
comfy install --restore
comfy install --pr 1234
comfy install --version latest
comfy install --version 0.2.0
GPU options: --nvidia, --amd, --intel-arc, --m-series, --cpu
CUDA versions (NVIDIA): --cuda 12.9, --cuda 12.6, --cuda 12.4, --cuda 12.1, --cuda 11.8
Other flags: --skip-manager, --skip-torch-or-directml, --skip-requirement, --fast-deps
Launch
comfy launch
comfy launch --background
comfy launch -- --listen 0.0.0.0
comfy stop
comfy launch --frontend-pr 1234
Workspace selection
Global flags (mutually exclusive):
comfy --workspace /path/to/ComfyUI ...
comfy --recent ...
comfy --here ...
comfy which
comfy set-default /path/to/ComfyUI
Custom nodes
comfy node show
comfy node simple-show
comfy node install <name>
comfy node install <name> --fast-deps
comfy node reinstall <name>
comfy node uninstall <name>
comfy node update all
comfy node disable <name>
comfy node enable <name>
comfy node fix <name>
Snapshots:
comfy node save-snapshot
comfy node save-snapshot --output snapshot.json
comfy node restore-snapshot snapshot.json
comfy node restore-dependencies
Debugging:
comfy node bisect
comfy node deps-in-workflow workflow.json
comfy node install-deps --workflow workflow.json
Publishing:
comfy node init
comfy node scaffold
comfy node validate
comfy node pack
comfy node publish
Models
comfy model list
comfy model download --url <url>
comfy model remove <name>
Sources: CivitAI, Hugging Face, direct URLs
Tokens for gated models:
--civitai-token or config civitai_api_token
--hf-token or config hf_api_token
Run workflows
comfy run --workflow workflow_api.json
comfy run --workflow workflow.json --wait --verbose
comfy run --workflow workflow.json --host 192.168.1.10 --port 8188
Requires running ComfyUI instance.
ComfyUI-Manager
comfy manager disable-gui
comfy manager enable-gui
comfy manager clear
Update
comfy update all
comfy update comfy
Other commands
comfy env
comfy --version
comfy pr-cache list
comfy pr-cache clean
comfy standalone
comfy tracking enable|disable
comfy feedback
Config
Location:
- Linux:
~/.config/comfy-cli/config.ini
- macOS:
~/Library/Application Support/comfy-cli/config.ini
- Windows:
%APPDATA%\Local\comfy-cli\config.ini
Keys: default_workspace, default_launch_extras, civitai_api_token, hf_api_token
Tips
--skip-prompt for non-interactive mode (CI/scripts)
- Background mode tracks PID for clean
comfy stop
- Snapshots preserve exact node versions for reproducibility
comfy node bisect binary-searches to find which node broke your setup
- PR cache avoids rebuilding frontend PRs you've tested before