Cli Anything Comfyui

by hkuds34f519533bc1No license51K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 2 weeks ago

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 workflows, manage models, download generated images, and monitor the generation queue without a GUI.

Instructions onlyDesign & Creative
AI-generated overview

Command-line interface for managing ComfyUI image generation workflows, models, queues and generated images via the ComfyUI REST API.

What it does
This skill documents a command-line interface that talks to a running ComfyUI server over its REST API. It covers workflow listing, loading and validation, queueing prompts, checking queue status and history, interrupting or clearing the queue, discovering checkpoint, LoRA, VAE and ControlNet models, and listing or downloading generated images. It also reports server statistics and info, and offers both human-readable output and a JSON mode intended for programmatic use.
When to use it
Use it when you need to drive ComfyUI without a graphical interface, for example to queue a workflow, monitor generation progress, inspect available models and node types, or download finished images. It suits agents and power users who want scriptable, JSON-parseable access to a local ComfyUI instance.
Requirements
Requires Python 3.10 or later and a ComfyUI installation running at reachable over the network. The CLI is installed via pip as the cli-anything-comfyui package. No scripts ship with the skill; it is instructions only.

cli-anything-comfyui

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.

Installation

This CLI is installed as part of the cli-anything-comfyui package:

bash
pip install cli-anything-comfyui

Prerequisites:

Usage

Basic Commands

bash
# Show helpcli-anything-comfyui --help
# Start interactive REPL modecli-anything-comfyui repl
# Check server statscli-anything-comfyui system stats
# Run with JSON output (for agent consumption)cli-anything-comfyui --json system stats

REPL Mode

Start an interactive session for exploratory use:

bash
cli-anything-comfyui repl# Enter commands interactively with tab-completion and history

Command Groups

Workflow

Workflow management commands.

CommandDescription
listList saved workflows
loadLoad a workflow from a JSON file
validateValidate a workflow JSON against the ComfyUI node graph

Queue

Generation queue management.

CommandDescription
promptQueue a workflow for execution
statusShow current queue status (running and pending)
clearClear the generation queue
historyShow prompt execution history
interruptInterrupt the currently running generation

Models

Model discovery commands.

CommandDescription
checkpointsList available checkpoint models
lorasList available LoRA models
vaesList available VAE models
controlnetsList available ControlNet models
node-infoShow detailed info for a specific node type
list-nodesList all available node types

Images

Generated image management.

CommandDescription
listList generated images on the server
downloadDownload a specific generated image
download-allDownload all images from a prompt execution

System

Server status and information.

CommandDescription
statsShow ComfyUI system statistics (GPU, CPU, memory)
infoShow ComfyUI server info and extensions

Examples

Check System Status

bash
# Server statscli-anything-comfyui system stats
# Server infocli-anything-comfyui system info

Discover Available Models

bash
# List checkpointscli-anything-comfyui models checkpoints
# List LoRAscli-anything-comfyui models loras
# List all node typescli-anything-comfyui models list-nodes

Queue and Monitor Generation

bash
# Queue a workflowcli-anything-comfyui queue prompt --workflow my_workflow.json
# Check queue statuscli-anything-comfyui queue status
# View execution historycli-anything-comfyui --json queue history

Download Generated Images

bash
# List generated imagescli-anything-comfyui images list
# Download a specific imagecli-anything-comfyui images download --filename ComfyUI_00001_.png --output ./out.png
# Download all images from a promptcli-anything-comfyui images download-all --prompt-id <id> --output-dir ./outputs

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
bash
# Human outputcli-anything-comfyui system stats
# JSON output for agentscli-anything-comfyui --json system stats

For AI Agents

When using this CLI programmatically:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. Verify ComfyUI is running with system stats before other commands

More Information

  • Full documentation: See README.md in the package
  • Test coverage: See TEST.md in the package
  • Methodology: See HARNESS.md in the cli-anything-plugin

Version

1.0.0

Source and attribution

Source:hkuds/cli-anythinginskills/cli-anything-comfyuiat commit34f5195

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal