{"id":21059,"library":"comfy-cli","title":"Comfy CLI","description":"A command-line interface for managing ComfyUI installations, workflows, and models. Version 1.7.3 requires Python >=3.10 and is actively maintained.","status":"active","version":"1.7.3","language":"python","source_language":"en","source_url":"https://github.com/Comfy-Org/comfy-cli","tags":["comfyui","cli","workflow"],"install":[{"cmd":"pip install comfy-cli","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"Package name uses underscore, not hyphen","wrong":"from comfycli import ComfyUI","symbol":"ComfyUI","correct":"from comfy_cli import ComfyUI"}],"quickstart":{"code":"from comfy_cli import ComfyUI\nimport os\n\n# Initialize with optional API key\ncomfy = ComfyUI(api_key=os.environ.get('COMFY_API_KEY', ''))\n# Install and run ComfyUI\ncomfy.install()\ncomfy.start()","lang":"python","description":"Initialize a ComfyUI instance, install it, and start the server."},"warnings":[{"fix":"Update scripts to use --port-number instead of --port","message":"Version 1.7.0 changed the CLI argument --port to --port-number","severity":"breaking","affected_versions":">=1.7.0"},{"fix":"Use `comfy` as the command, e.g., `comfy install`","message":"The CLI uses `comfy` command, not `comfy-cli`. Some users try `comfy-cli` which fails.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `from comfy_cli import ComfyUI`","cause":"Trying to import with hyphen instead of underscore","error":"ModuleNotFoundError: No module named 'comfy_cli'"},{"fix":"Run `pip install comfy-cli` and ensure Python binaries are in PATH","cause":"comfy-cli not installed or not in PATH","error":"comfy: command not found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}