Installation¶
Get ComfyDock installed and ready to use in just a few minutes.
Prerequisites¶
Before installing ComfyDock, make sure you have:
- Python 3.10 or newer — Check with
python --versionorpython3 --version - Operating system — Windows 10/11, macOS 10.15+, or Linux (any modern distribution)
- Internet connection — For downloading dependencies and models
GPU Support
ComfyDock automatically detects your GPU (NVIDIA CUDA, AMD ROCm, Intel XPU) and installs the appropriate PyTorch backend. You can also specify backends manually with the --torch-backend flag.
Step 1: Install UV¶
UV is a fast Python package manager that ComfyDock uses to manage environments and dependencies.
After installation, restart your terminal or run:
After installation, restart PowerShell.
Verify UV installation:
You should see output like uv 0.4.x or newer.
Step 2: Install ComfyDock CLI¶
With UV installed, install the ComfyDock CLI tool:
This installs the cfd command globally, making it available from anywhere in your terminal.
Verify ComfyDock installation:
You should see the ComfyDock version number.
Shell Completion
Install tab completion for your shell:
Supports bash, zsh, and fish. Restart your shell after installing.
Step 3: Initialize your workspace¶
Create a ComfyDock workspace directory:
# Initialize in default location (~/comfydock)
cfd init
# Or specify a custom path
cfd init /path/to/my/workspace
The workspace is where ComfyDock stores:
- Environments (isolated ComfyUI installations)
- Global model index
- Cache and logs
Workspace Structure
Alternative installation methods¶
Install from pip¶
If you don't want to use UV tool isolation:
This makes cfd available in your current Python environment.
Install from source¶
For development or testing:
# Clone the repository
git clone https://github.com/ComfyDock/comfydock.git
cd comfydock
# Install in development mode
uv pip install -e packages/cli/
Verifying your installation¶
Check that everything is working:
# Check versions
cfd --version
uv --version
# Initialize workspace (if not done)
cfd init
# List environments (should be empty)
cfd list
You should see:
Platform-specific notes¶
Windows¶
- WSL2 recommended — For best performance, use ComfyDock in WSL2 (Windows Subsystem for Linux)
- Long path support — Enable long paths in Windows if you encounter path length errors:
macOS¶
- Xcode Command Line Tools — May be required for some dependencies:
Linux¶
-
System dependencies — Most distributions work out of the box. If you encounter build errors, install development tools:
Updating ComfyDock¶
To update to the latest version:
Or with pip:
Uninstalling¶
To remove ComfyDock:
# Remove the CLI tool
uv tool uninstall comfydock-cli
# Optionally remove your workspace
rm -rf ~/comfydock
Warning
Removing the workspace deletes all your environments and configuration. Export any important environments first with cfd export.
Troubleshooting installation¶
UV not found after installation¶
Problem: Running uv shows "command not found"
Solution: Restart your terminal or manually source the environment:
Permission errors on Linux/macOS¶
Problem: Permission denied when installing
Solution: Don't use sudo with UV or pip. If needed, fix permissions:
# Fix UV permissions
chown -R $USER:$USER ~/.cargo
# For pip (if using system Python)
pip install --user comfydock-cli
Python version too old¶
Problem: ComfyDock requires Python 3.10+
Solution: Install a newer Python version:
Download from python.org
Windows installation fails¶
Problem: PowerShell execution policy blocks the install script
Solution: Run PowerShell as Administrator:
Then try the installation again.
Next steps¶
Now that ComfyDock is installed:
- Quickstart guide — Create your first environment in 5 minutes
- Core concepts — Understand workspaces, environments, and .cec
- CLI reference — Explore all available commands
Getting help¶
If you encounter issues during installation:
- Check the troubleshooting guide
- Search GitHub Issues
- Ask on GitHub Discussions