Skip to main content

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)

CommandLevel
git clone https://github.com/comfyanonymous/ComfyUI
Clone ComfyUI source
Basic
python main.py --cpu
Force CPU inference (when no GPU available)
Intermediate
python main.py --force-fp16
Force FP16 precision
Intermediate
python main.py --output-directory
Specify output directory
Basic
python -m comfy --help
Show ComfyUI CLI help
Basic
python -m comfy node install
Install a custom node
Intermediate

ai-server(4)

CommandLevel
python main.py
Start ComfyUI (in ComfyUI directory)
Basic
python main.py --port
Specify server port
Basic
python main.py --listen
Listen on all network interfaces (remote access)
Intermediate
curl http://localhost:8188/api/v1/queue
Check ComfyUI task queue
Intermediate

ai-model(1)

CommandLevel
python -m comfy model download
Download a specific model
Intermediate

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.