Overview
comfy-cli is a command line tool that makes it easier to install and manage Comfy.
It does two things:
- Manage a local ComfyUI install — install, launch, update, snapshot, and bisect ComfyUI and its custom nodes.
- Call hosted partner nodes directly — generate images and video from Seedance, Nano Banana (Gemini), Grok, Flux, Ideogram, DALL·E, Recraft, Stability, Kling, Luma, Runway, Pika, Vidu, Hailuo, Moonvalley, and more, with a single command. No local ComfyUI or workflow JSON required.
Install CLI
Install ComfyUI
Create a virtual environment with any Python version greater than 3.9.Run ComfyUI
Call partner nodes directly with comfy generate (Beta)
comfy generate is in beta. Flag names, model aliases, and output formats may change while we iron things out based on feedback. The underlying partner endpoints are stable — the CLI ergonomics on top of them are what’s still evolving. File feedback or issues on the comfy-cli GitHub repo.Prerequisites
- Create a Comfy API key
- Add credits to your account
- Optional: Browse partner nodes and per-call pricing
Your first generation
cat.png.
Popular models
A few of the most-used partner models, callable with one line:Discover models
Image editing with a reference image
Pass local file paths directly — the CLI uploads them through Comfy’s storage endpoint (or base64-encodes inline, depending on what each partner expects):Uploaded reference assets are auto-deleted after 24 hours. They’re stored in a Comfy-managed GCS bucket and served via signed URLs. For most workflows (upload → use → done) this is transparent; for long-running pipelines, plan to re-upload before each job. See the reference for details.
Video generation (async jobs)
Video jobs are async — the CLI blocks and polls until ready by default:--async to return immediately with a job id, then resume later:
Scripting with JSON output
For pipelines,--json emits the raw API response:
Manage Custom Nodes
cm-cli for installing custom nodes. See the docs for more information.
Manage Models
Downloading models withcomfy-cli is easy. Just run: