Communitygithub.com

cli-anything-comfyui

ComfyUI REST API를 통해 AI 이미지 생성 워크플로우를 관리하는 CLI 도구입니다.

cli-anything-comfyui란 무엇인가요?

이 스킬은 AI 에이전트 및 고급 사용자가 GUI 없이 ComfyUI 서버의 이미지 생성 워크플로우를 효율적으로 관리할 수 있도록 설계된 CLI 도구입니다. ComfyUI REST API를 활용하여 워크플로우 큐 제어, 모델 탐색, 생성된 이미지 다운로드, 시스템 모니터링 등의 기능을 제공합니다. Python 3.10+ 환경에서 pip install로 간단히 설치할 수 있으며, REPL 모드나 직접 명령어를 통해 워크플로우를 큐에 추가하고 진행 상태를 확인할 수 있습니다. 사람이 읽기 쉬운 기본 출력과 함께 `--json` 플래그를 통해 AI 에이전트가 파싱 가능한 구조화된 JSON 출력을 지원하여 자동화된 워크플로우 관리에 적합합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-comfyui

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

cli-anything-comfyui은(는) 무엇을 하나요?

ComfyUI REST API를 통한 AI 이미지 생성 워크플로우 관리. GUI 없이 워크플로우를 큐에 추가하고, 모델을 관리하고, 생성된 이미지를 다운로드하며, 생성 큐를 모니터링해야 하는 AI 에이전트 및 고급 사용자를 위해 설계되었습니다.

설치

이 CLI는 cli-anything-comfyui 패키지의 일부로 설치됩니다:

pip install cli-anything-comfyui

사전 요구 사항:

사용법

기본 명령어

# 도움말 표시
cli-anything-comfyui --help

# 대화형 REPL 모드 시작
cli-anything-comfyui repl

# 서버 상태 확인
cli-anything-comfyui system stats

# JSON 출력으로 실행 (에이전트 소비용)
cli-anything-comfyui --json system stats

REPL 모드

탐색적 사용을 위한 대화형 세션 시작:

cli-anything-comfyui repl
# 탭 완성 및 기록 기능과 함께 대화형 명령어 입력

명령어 그룹

Workflow

워크플로우 관리 명령어입니다.

명령어설명
list저장된 워크플로우 목록 표시
loadJSON 파일에서 워크플로우 로드
validateComfyUI 노드 그래프에 대한 워크플로우 JSON 유효성 검사

Queue

생성 큐 관리.

명령어설명
prompt워크플로우 실행 큐에 추가
status현재 큐 상태 표시 (실행 중 및 대기 중)
clear생성 큐 지우기
history프롬프트 실행 기록 표시
interrupt현재 실행 중인 생성 중단

Models

모델 검색 명령어.

명령어설명
checkpoints사용 가능한 체크포인트 모델 목록 표시
loras사용 가능한 LoRA 모델 목록 표시
vaes사용 가능한 VAE 모델 목록 표시
controlnets사용 가능한 ControlNet 모델 목록 표시
node-info특정 노드 유형의 상세 정보 표시
list-nodes사용 가능한 모든 노드 유형 목록 표시

Images

생성된 이미지 관리.

명령어설명
list서버에 생성된 이미지 목록 표시
download특정 생성 이미지 다운로드
download-all프롬프트 실행의 모든 이미지 다운로드

System

서버 상태 및 정보.

명령어설명
statsComfyUI 시스템 통계 표시 (GPU, CPU, 메모리)
infoComfyUI 서버 정보 및 확장 기능 표시

예제

시스템 상태 확인

# 서버 통계
cli-anything-comfyui system stats

# 서버 정보
cli-anything-comfyui system info

사용 가능한 모델 검색

# 체크포인트 목록
cli-anything-comfyui models checkpoints

# LoRA 목록
cli-anything-comfyui models loras

# 모든 노드 유형 목록
cli-anything-comfyui models list-nodes

생성 큐 추가 및 모니터링

# 워크플로우 큐에 추가
cli-anything-comfyui queue prompt --workflow my_workflow.json

# 큐 상태 확인
cli-anything-comfyui queue status

# 실행 기록 보기
cli-anything-comfyui --json queue history

생성된 이미지 다운로드

# 생성된 이미지 목록
cli-anything-comfyui images list

# 특정 이미지 다운로드
cli-anything-comfyui images download --filename ComfyUI_00001_.png --output ./out.png

# 프롬프트의 모든 이미지 다운로드
cli-anything-comfyui images download-all --prompt-id <id> --output-dir ./outputs

출력 형식

모든 명령어는 이중 출력 모드를 지원합니다:

  • 사람이 읽기 쉬운 (기본값): 표, 색상, 형식화된 텍스트
  • 기계가 읽기 쉬운 (--json 플래그): 에이전트 소비용 구조화된 JSON
# 사람용 출력
cli-anything-comfyui system stats

# 에이전트용 JSON 출력
cli-anything-comfyui --json system stats

AI 에이전트용

이 CLI를 프로그래밍 방식으로 사용할 때:

  1. 항상 --json 플래그 사용하여 파싱 가능한 출력을 확보하세요.
  2. 반환 코드 확인 - 0은 성공, 0이 아닌 값은 오류를 나타냅니다.
  3. 실패 시 오류 메시지를 위해 stderr 구문 분석
  4. 모든 파일 작업에 절대 경로 사용
  5. 다른 명령어 전에 system stats로 ComfyUI가 실행 중인지 확인

추가 정보

  • 전체 문서: 패키지의 README.md 참조
  • 테스트 범위: 패키지의 TEST.md 참조
  • 방법론: cli-anything-plugin의 HARNESS.md 참조

버전

1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

관련 스킬