This script automates the process of updating ComfyUI projects and their custom nodes.
- Updates all ComfyUI projects and their custom nodes
- Provides a progress bar for visual feedback
- Handles git operations including pulling, resolving conflicts, and managing stashes
- Offers verbose and force modes for different update scenarios
- Provides a summary of any issues encountered during the update process
-
Clone this repository or download the
update_comfyui.py
script. -
Make the script executable:
chmod +x update_comfyui.py
Run the script from the command line:
./update_comfyui.py [OPTIONS]
-h
,--help
: Show the help message and exit-v
,--verbose
: Run in verbose mode for detailed output-f
,--force
: Force update, discarding local changes
Update all projects with minimal output:
./update_comfyui.py
Update with detailed information:
./update_comfyui.py -v
Force update, discarding local changes:
./update_comfyui.py -f
Combine options:
./update_comfyui.py -v -f
-
Ensure you have Python 3.6+ and Git installed.
-
Download the
update_comfyui.py
script. -
Open Command Prompt and navigate to the directory where the script is located.
-
Run the script:
python update_comfyui.py [OPTIONS]
Update all projects with minimal output:
python update_comfyui.py
Update with detailed information:
python update_comfyui.py -v
Force update, discarding local changes:
python update_comfyui.py -f
Combine options:
python update_comfyui.py -v -f
If run from within a specific project directory, only that project will be updated.
- Python 3.6+
- Git