Installation¶
Get ComfyGit installed and ready to use in just a few minutes.
Prerequisites¶
Before installing ComfyGit, 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
ComfyGit 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 ComfyGit 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 ComfyGit CLI¶
With UV installed, install the ComfyGit CLI tool:
This installs the cg command globally, making it available from anywhere in your terminal.
Verify ComfyGit installation:
You should see the ComfyGit 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 ComfyGit workspace directory:
# Initialize in default location (~/comfygit)
cg init
# Or specify a custom path
cg init /path/to/my/workspace
The workspace is where ComfyGit 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 cg available in your current Python environment.
Install from source¶
For development or testing:
# Clone the repository
git clone https://github.com/comfyhub-org/comfygit.git
cd comfygit
# Install in development mode
uv pip install -e packages/cli/
Verifying your installation¶
Check that everything is working:
# Check versions
cg --version
uv --version
# Initialize workspace (if not done)
cg init
# List environments (should be empty)
cg list
You should see:
Platform-specific notes¶
Windows¶
- WSL2 recommended — For best performance, use ComfyGit 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 ComfyGit¶
To update to the latest version:
Or with pip:
Uninstalling¶
To remove ComfyGit:
# Remove the CLI tool
uv tool uninstall comfygit
# Optionally remove your workspace
rm -rf ~/comfygit
Warning
Removing the workspace deletes all your environments and configuration. Export any important environments first with cg 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 comfygit
Python version too old¶
Problem: ComfyGit 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 ComfyGit 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