ComfyDock CLI is a CLI tool for managing ComfyUI environments using ComfyDock and Docker. It is currently a wrapper around the ComfyDock server.
- Docker: ComfyDock requires Docker to be installed on your system
- If you don't have Docker installed, you can download Docker Desktop for Windows, macOS, or Linux
- For server environments, you can install Docker Engine
pip install comfydock
# Start ComfyDock (backend + frontend)
comfydock up
# Stop ComfyDock
comfydock down
# Configure settings
comfydock config
# Check for updates
comfydock update
ComfyDock CLI provides several commands to manage your ComfyUI Docker environments:
comfydock --help # Show main help
comfydock up --help # Show help for a specific command
# Start both backend and frontend (opens in browser automatically)
comfydock up
# Start only the backend server without the frontend
comfydock up --backend
# Stop the running server (both backend and frontend)
comfydock down
ComfyDock stores its configuration in ~/.comfydock/config.json
. You can view and modify this configuration with:
# Interactive configuration
comfydock config
# View current configuration
comfydock config --list
# View all settings (including advanced and internal)
comfydock config --list --all
# Show/edit advanced settings
comfydock config --advanced
# Directly set a value
comfydock config comfyui_path /home/user/comfy_ui
comfydock config --advanced log_level DEBUG
comfyui_path
: Path to your ComfyUI installationdb_file_path
: Where to store environment datauser_settings_file_path
: Where to store user preferencesbackend_port
: Port for the FastAPI backend serverfrontend_host_port
: Port for accessing the frontend UIallow_multiple_containers
: Whether to allow multiple containersdockerhub_tags_url
: URL for retrieving Docker image tags
log_level
: Logging verbosity (DEBUG, INFO, WARNING, ERROR, CRITICAL)check_for_updates
: Whether to automatically check for updatesupdate_check_interval_days
: Days between update checks
# Check for updates
comfydock update
To update ComfyDock CLI to the latest version:
pip install --upgrade comfydock
A typical workflow might look like:
- Install Docker if you haven't already
- Install with
pip install comfydock
- Configure your ComfyUI path:
comfydock config comfyui_path /path/to/comfyui
- Start the server:
comfydock up
- Use ComfyUI in your browser
- When finished, stop the server with ctrl+c or
comfydock down
ComfyDock includes developer tools for those contributing to the project or needing to override internal settings.
You can override internal settings using environment variables with the COMFYDOCK_ prefix:
# Override the frontend image
export COMFYDOCK_FRONTEND_IMAGE=mycustom/comfydock-frontend
comfydock up
For convenience, ComfyDock supports .env and .env.local files for persistent overrides:
# Create template .env files
comfydock dev env-setup
# Edit the files and uncomment values you want to override
nano .env.local
.env.local takes precedence and is gitignored by default. It's perfect for personal development settings.
comfydock dev status
This shows your current configuration with any active overrides highlighted.
Logs are stored in ~/.comfydock/comfydock.log with a configurable log level. You can change the log level:
comfydock config --advanced log_level DEBUG
All settings are stored in:
- ~/.comfydock/config.json - User configuration
- ~/.comfydock/environments.json - Environment database
- ~/.comfydock/user.settings.json - User preferences
ComfyDock is an open source project. Contributions are welcome on GitHub.
To set up a development environment:
- Clone the repository
- Install with pip in development mode:
pip install -e .
- Create dev override files:
comfydock dev env-setup
- Run with your changes:
comfydock up