ComfyUI Cheatsheet
ComfyUI is a node-based workflow tool for Stable Diffusion image generation. Compose models, prompts, samplers, and more via a visual node graph. Also provides CLI and API for automation.
Updated: 2026-07-20·11 commands
Quick Start
``bash
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt
python main.py
# Web UI at http://localhost:8188 # For remote access: python main.py --listen 0.0.0.0 --port 8188 ``
Startup & Modes(6)
| Command | Level | ||
|---|---|---|---|
git clone https://github.com/comfyanonymous/ComfyUIClone ComfyUI source | Basic | git clone https://github.com/comfyanonymous/ComfyUI.git | |
python main.py --cpuForce CPU inference (when no GPU available) | Intermediate | python main.py --cpu | |
python main.py --force-fp16Force FP16 precision | Intermediate | python main.py --force-fp16 | |
python main.py --output-directorySpecify output directory | Basic | python main.py --output-directory /data/comfyui-outputs | |
python -m comfy --helpShow ComfyUI CLI help | Basic | python -m comfy --help | |
python -m comfy node installInstall a custom node | Intermediate | python -m comfy node install comfyui-manager |
ai-server(4)
| Command | Level | ||
|---|---|---|---|
python main.pyStart ComfyUI (in ComfyUI directory) | Basic | python main.py | |
python main.py --portSpecify server port | Basic | python main.py --port 8188 | |
python main.py --listenListen on all network interfaces (remote access) | Intermediate | python main.py --listen 0.0.0.0 | |
curl http://localhost:8188/api/v1/queueCheck ComfyUI task queue | Intermediate | curl -s http://localhost:8188/api/v1/queue |
ai-model(1)
| Command | Level | ||
|---|---|---|---|
python -m comfy model downloadDownload a specific model | Intermediate | python -m comfy model download --url https://huggingface.co/runwayml/stable-diffusion-v1-5 |
FAQ
This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.