Common Workflows¶
This page collects the tasks ComfyGit users usually come here to solve. Each recipe points to the deeper guide when you need more detail.
Create A Clean ComfyUI Environment¶
Use this when you want to test nodes or workflows without changing your main ComfyUI install.
ComfyGit creates an isolated ComfyUI checkout and virtualenv. The selected PyTorch backend is local to this machine and can be changed later.
Read more: Creating environments
Use An Existing Model Folder¶
Use this when you already have models under another ComfyUI installation.
ComfyGit indexes the files and links environments to that model directory. It does not duplicate model bytes.
Read more: Model index
Add A Custom Node¶
Use registry IDs when possible:
Use Git URLs when the node is not in the registry or when you need a branch, fork, or commit:
Read more: Adding custom nodes
Work On A Local Node Checkout¶
If an environment already tracks a registry or Git node, convert the materialized
copy to your local checkout with dev-link:
That preserves the manifest identity so workflow references still point to the same package.
Read more: Development nodes
Track And Resolve A Workflow¶
Save a workflow in ComfyUI, then inspect and resolve it:
ComfyGit can detect many built-in model loader references and custom node requirements. It will ask for help when a dependency is ambiguous.
Read more: Workflow resolution
Add A Model The Graph Did Not Reveal¶
Some custom nodes load files from model folders without exposing a standard loader widget. First make sure the file is indexed:
Then declare it for the workflow:
cg workflow model add my-workflow \
--path frame_interpolation/film_net_fp16.safetensors \
--importance required
Read more: Workflow model dependencies
Add A Source Before Sharing¶
If a required model has no source, another machine may not be able to recreate the environment.
cg model add-source film_net_fp16.safetensors \
https://huggingface.co/org/repo/resolve/main/film_net_fp16.safetensors
Read more: Adding model sources
Commit And Push An Environment¶
cg status
cg commit -m "Add Deforum workflow"
cg remote add origin git@github.com:team/deforum-env.git
cg push
Git stores the environment recipe and workflow files. It does not store model bytes.
Read more: Git remotes
Import Someone Else's Environment¶
Import is a human setup flow. It can install Manager, prompt when needed, and leave you with an authoring environment.
Read more: Export and import
Materialize A Runtime Environment¶
Use materialization in Docker, CI, remote machines, or runtime containers.
cg materialize https://github.com/team/deforum-env.git \
--name deforum-runtime \
--models required \
--torch-backend auto \
--replace
Materialize is non-interactive and does not launch ComfyUI.
Read more: Materialize runtime environments
Serve A Workflow Through Studio Or HTTP¶
First run ComfyUI:
Then serve the environment from another terminal:
Open http://127.0.0.1:8190 to use the packaged Studio UI.
Read more: Serve workflows