Command-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API. Designed for AI agents and power users who need to queue work
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-skills-e2eea466ff04 ,按照其中的说明把「cli-anything-comfyui」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
AI image generation workflow management via the ComfyUI REST API. Designed for AI agents and power users who need to queue workflows, manage models, download generated images, and monitor the generation queue without a GUI.
This CLI is installed as part of the cli-anything-comfyui package:
pip install cli-anything-comfyui
Prerequisites:
# Show help
cli-anything-comfyui --help
# Start interactive REPL mode
cli-anything-comfyui repl
# Check server stats
cli-anything-comfyui system stats
# Run with JSON output (for agent consumption)
cli-anything-comfyui --json system stats
Start an interactive session for exploratory use:
cli-anything-comfyui repl
# Enter commands interactively with tab-completion and history
Workflow management commands.
| Command | Description |
|---|---|
list | List saved workflows |
load | Load a workflow from a JSON file |
validate | Validate a workflow JSON against the ComfyUI node graph |
Generation queue management.
| Command | Description |
|---|---|
prompt | Queue a workflow for execution |
status | Show current queue status (running and pending) |
clear | Clear the generation queue |
history | Show prompt execution history |
interrupt | Interrupt the currently running generation |
Model discovery commands.
| Command | Description |
|---|---|
checkpoints | List available checkpoint models |
loras | List available LoRA models |
vaes | List available VAE models |
controlnets | List available ControlNet models |
node-info | Show detailed info for a specific node type |
list-nodes | List all available node types |
Generated image management.
| Command | Description |
|---|---|
list | List generated images on the server |
download | Download a specific generated image |
download-all | Download all images from a prompt execution |
Server status and information.
| Command | Description |
|---|---|
stats | Show ComfyUI system statistics (GPU, CPU, memory) |
info | Show ComfyUI server info and extensions |
# Server stats
cli-anything-comfyui system stats
# Server info
cli-anything-comfyui system info
# List checkpoints
cli-anything-comfyui models checkpoints
# List LoRAs
cli-anything-comfyui models loras
# List all node types
cli-anything-comfyui models list-nodes
# Queue a workflow
cli-anything-comfyui queue prompt --workflow my_workflow.json
# Check queue status
cli-anything-comfyui queue status
# View execution history
cli-anything-comfyui --json queue history
# List generated images
cli-anything-comfyui images list
# Download a specific image
cli-anything-comfyui images download --filename ComfyUI_00001_.png --output ./out.png
# Download all images from a prompt
cli-anything-comfyui images download-all --prompt-id <id> --output-dir ./outputs
All commands support dual output modes:
--json flag): Structured JSON for agent consumption# Human output
cli-anything-comfyui system stats
# JSON output for agents
cli-anything-comfyui --json system stats
When using this CLI programmatically:
--json flag for parseable outputsystem stats before other commands1.0.0