comfy-cli icon indicating copy to clipboard operation
comfy-cli copied to clipboard

Update comfyUI version?

Open krigeta opened this issue 5 months ago • 8 comments

Hello Team, there is a command to update the nodes but bot the comfyUI itself, is it possible to update the comfyUI to the latest version or desired version?

krigeta avatar Aug 30 '25 10:08 krigeta

Hi @krigeta! I'm Dosu and I’m helping the comfy-cli team.

Yes, you can update ComfyUI to the latest or a specific version using comfy-cli. Use the comfy install command with the --version option to specify the version you want (for example: latest, nightly, or a semantic version like 0.3.26). You can also use the --pr option to install from a specific pull request branch. If you want to update to the latest commit on your current branch, you can use comfy update comfy to pull the latest changes and reinstall dependencies. For more details, see the README and install command implementation.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Aug 30 '25 10:08 dosubot[bot]

there is no update command for comfycli, we need to keep using the install command and comfy update comfy not working

krigeta avatar Sep 02 '25 06:09 krigeta

The comfy-cli does have an update command, but its behavior is specific: comfy update comfy should update the ComfyUI repo in your workspace by running a git pull and reinstalling requirements. If this isn't working, it could be due to issues like the workspace path not being set, missing dependencies, or local changes in your repo that block updates (see recent PR #303).

If you want a more reliable way to update ComfyUI, you can use comfy install --version latest (or specify a version/branch/PR). This will fetch the desired version and reinstall dependencies, effectively updating your setup.

So, for now, using the install command is the supported and robust way to update ComfyUI with comfy-cli. If you want to troubleshoot why comfy update comfy isn't working, double-check your workspace path and make sure there are no local changes blocking a git pull.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Sep 02 '25 06:09 dosubot[bot]

there is no update command for comfycli, we need to keep using the install command and comfy update comfy not working

Hello, can you please describe the situation a little bit more precise.

is it possible to update the comfyUI to the latest version or desired version?

Does the comfy install command with --version does not work or does not enough?

bigcat88 avatar Sep 02 '25 07:09 bigcat88

Hey @bigcat88, I'm using Modal, that's a serverless cloud service, and I'm encountering an issue where I need to download 60+ GB every time I need to access ComfyUI on Modal after an update. The system is based on image building, and in the very first step of my script, I install ComfyUI using: pip install --system --compile-bytecode comfy-cli followed by: comfy --skip-prompt install --nvidia This works fine initially. However, whenever ComfyUI gets updated, I don't have any option to update just ComfyUI without affecting other components. When I run comfy install --version latest again in the last image building step to avoid downloading the 60+GB models, ComfyUI updates, but all custom nodes and models disappear. Then I have no choice but to run the entire script again and start from scratch. Don't you think there should be an option that only updates ComfyUI itself? Note: I don't have UI access to this serverless server, so I'm doing everything through scripts and console commands.

krigeta avatar Sep 02 '25 07:09 krigeta

Any update @bigcat88 ?

krigeta avatar Sep 05 '25 14:09 krigeta

I can answer tomorrow (and hope to fix it if it's a bug), I've been very busy and a little sick these days :(

bigcat88 avatar Sep 05 '25 15:09 bigcat88

comfy update comfy not working

For me this command works, and updates only comfy(if executed without all argument).

Can you help me to reproduce situation where it does not works?

bigcat88 avatar Sep 06 '25 13:09 bigcat88