How you update ComfyUI depends on how you installed it: the desktop app updates from its Manage panel, the portable build has update scripts, and a git install updates with git pull.
Desktop app
Open the Manage panel and use the Update tab, choosing the Stable channel (the default) or Latest on GitHub. The app itself updates separately through Check for Updates in the app menu.
Windows portable
Run a script from the update folder of the portable install:
update_comfyui.batupdates to the latest development version.update_comfyui_stable.batupdates to the latest stable version.update_comfyui_and_python_dependencies.batalso reinstalls Python dependencies including PyTorch. The docs warn it can cause conflicts, so use it only to fix dependencies or for a major upgrade.
Git or manual install
With your environment active, from the ComfyUI folder:
git pull
pip install -r requirements.txt
python main.py
To stay on the latest stable tag instead of the newest commit:
git fetch --tags
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
ComfyUI's README notes that commits between stable tags can break many custom nodes, which is why the stable channel exists. After an update, check your nodes: the ComfyUI custom node install guide lists what each common pack needs, and the ComfyUI Manager guide covers pinning versions.
Sources
- ComfyUI docs: Update ComfyUI. docs.comfy.org
- ComfyUI README: Release Process. github.com