Creating Environments¶
An environment is an isolated ComfyUI installation with a tracked manifest and derived runtime state.
Use environments when you want to test nodes, work on a workflow, or prepare a shareable ComfyUI setup without changing another install.
Create And Use¶
Create with automatic hardware detection:
Create with a specific backend:
Create against a fork or an unmerged upstream commit:
cg create experimental-h3 \
--comfyui-repository https://github.com/kijai/ComfyUI.git \
--comfyui 10febb01d7be73d1491cf5e5347b5ab8b6c2c09e \
--use
ComfyGit records the actual full commit in the manifest and verifies both the repository origin and commit during later import and materialization.
Common Options¶
cg create my-env --python 3.11
cg create my-env --comfyui v0.3.68
cg create my-env --comfyui-repository https://github.com/owner/ComfyUI.git --comfyui COMMIT
cg create my-env --no-manager
cg create my-env --yes
--no-manager is useful for headless or runtime-only environments. Normal
authoring environments install comfygit-manager so you can use the ComfyGit
panel inside ComfyUI.
What Gets Created¶
ComfyGit creates:
- A tracked environment manifest.
- A ComfyUI checkout.
- A Python virtual environment managed by uv.
- Model links to the workspace model directory.
- Runtime metadata and cache directories.
- The Manager custom node unless skipped.
Only the portable recipe should be committed. Runtime directories can be rebuilt with sync or repair.
After Creation¶
Run ComfyUI:
Check environment state:
Commit meaningful changes:
Failed Or Interrupted Creation¶
If creation is interrupted, ComfyGit may leave partial runtime files. Run:
If an environment does not appear in cg list, it did not become a completed
managed environment.