Cli Anything Comfyui

hkuds/cli-anything/skills/cli-anything-comfyui

作者 hkuds34f519533bc1無授權條款51K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 週前更新

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.

僅含說明Design & Creative
AI 產生的概覽

透過 ComfyUI REST API 管理 ComfyUI 影像生成工作流程、模型、佇列與生成影像的命令列介面。

功能
此技能說明一個透過 REST API 與執行中的 ComfyUI 伺服器溝通的命令列介面。內容涵蓋工作流程的列出、載入與驗證,送出提示任務,查看佇列狀態與執行歷史,中斷或清空佇列,探索 checkpoint、LoRA、VAE 與 ControlNet 模型,以及列出或下載生成的影像。它也會顯示伺服器統計資料與伺服器資訊,並提供人類可讀輸出與供程式化使用的 JSON 模式。
適用情境
當你需要在不使用圖形介面的情況下操作 ComfyUI 時使用,例如送出工作流程、監控生成進度、查看可用模型與節點類型,或下載已生成的影像。它適合想要以可撰寫指令碼、可解析 JSON 的方式存取本機 ComfyUI 執行個體的代理與進階使用者。
執行需求
需要 Python 3.10 或更新版本,以及一個執行於 且可透過網路存取的 ComfyUI 安裝。此命令列介面以 cli-anything-comfyui 套件的形式透過 pip 安裝。此技能未隨附指令碼,僅為說明文件。

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

來源與署名

來源:hkuds/cli-anything位於skills/cli-anything-comfyui提交34f5195

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架