How to Update ComfyUI
This section provides a comprehensive guide to updating ComfyUI
While we’ve covered ComfyUI updates across different installation methods in various sections, this comprehensive guide consolidates all update procedures to help users clearly understand how to update ComfyUI.
How to Update ComfyUI?
ComfyUI Portable provides convenient batch scripts for easy updates.
Update Script Location
In the update
folder within your portable installation directory, you’ll find the following update scripts:
ComfyUI Portable provides convenient batch scripts for easy updates.
Update Script Location
In the update
folder within your portable installation directory, you’ll find the following update scripts:
ComfyUI Desktop features automatic updates to ensure you’re always running the latest version. However, since the Desktop version is built on stable releases, feature updates may lag behind. You can also visit the download page to get the latest version.
Auto-Update Settings
Ensure automatic updates are enabled in your settings:
Manual Update Check
You can also manually check for available updates:
- Click
Menu
in the menu bar - Select
Help
- Click
Check for Updates
Manually installed ComfyUI requires Git commands to complete updates.
Pre-Update Requirements
Ensure your system has Git installed and ComfyUI was installed via Git clone.
Update Steps
Activate Virtual Environment
First, activate ComfyUI’s Python virtual environment (if using one):
Pull Latest Code
Navigate to your ComfyUI installation directory and pull the latest code:
Update Dependencies
Install or update ComfyUI’s dependency packages:
Ensure you’re in ComfyUI’s virtual environment to avoid contaminating the system-level Python environment
Restart ComfyUI
After updating, restart ComfyUI:
Version Switching (Optional)
To switch to a specific version, use these commands:
ComfyUI Version Types
Depending on your installation method, ComfyUI offers several installation versions. The links below contain update instructions for each version.
What Needs to Be Updated When Updating ComfyUI?
ComfyUI updates primarily consist of two components:
- Update ComfyUI’s core code
- Update ComfyUI’s core dependencies, including necessary Python dependencies and ComfyUI functional dependency packages
Core Code: New nodes, new model support, new features, etc. Core Dependencies: Mainly includes ComfyUI’s frontend functionality, workflow templates, node help documentation, etc.
These three core dependencies are maintained in separate repositories:
- ComfyUI_frontend - Frontend interface and interactive features
- workflow_templates - Pre-built workflow templates
- comfyui-embedded-docs - Node help documentation
It’s important to understand the difference between development (nightly) and stable (release) versions:
- Development version (nightly): Latest commit code, giving you access to the newest features, but may contain potential issues
- Stable version (release): Built on stable releases, usually lags behind development versions but offers higher stability. We support stable versions after features are tested and stabilized
Many users often find themselves on release versions or desktop versions during updates, but discover that needed features are only available in development versions. In such cases, check if your local ComfyUI/requirements.txt
matches the nightly version dependencies to determine if all dependencies support the latest features.
Common Update Issues
Missing or Outdated Frontend, Workflow Templates, Node After Updates
Users often only use the git pull
command to update ComfyUI code but neglect core dependency updates, leading to the following issues:
- Missing or abnormal frontend functionality
- Cannot find newly added workflow templates
- Outdated or missing node help documentation
- New features lack corresponding frontend support
After using the git pull
command, use pip install -r requirements.txt
to update dependencies.
Users often only use the git pull
command to update ComfyUI code but neglect core dependency updates, leading to the following issues:
- Missing or abnormal frontend functionality
- Cannot find newly added workflow templates
- Outdated or missing node help documentation
- New features lack corresponding frontend support
After using the git pull
command, use pip install -r requirements.txt
to update dependencies.
If dependency updates fail, it’s commonly due to network or computer permission issues. When core dependency failures occur during updates, the system falls back to older versions. You’ll typically see logs like this during startup:
Follow these troubleshooting steps:
- Use
pip list
in the appropriate environment to view currently installed dependency packages. If you find version inconsistencies, usepip install -r requirements.txt
in the ComfyUI environment to attempt dependency updates again. - If issues persist after updating, check your network connection. Users in mainland China may need to configure a proxy to reliably access GitHub repositories.
- If problems continue, check computer permissions. If administrator privileges are required, run the command line with administrator rights.
How to Properly Update Core Dependencies
Recommended Method: Use the ComfyUI_windows_portable\update\update_comfyui.bat
batch script, which will update both ComfyUI code and all Python dependencies.
Manual Dependency Update: If you need to manually update dependencies, use the following command:
Recommended Method: Use the ComfyUI_windows_portable\update\update_comfyui.bat
batch script, which will update both ComfyUI code and all Python dependencies.
Manual Dependency Update: If you need to manually update dependencies, use the following command:
Standard Update Process:
Force Reinstall Core Dependencies:
Desktop version usually handles dependency updates automatically. If you encounter issues:
- Check if auto-update is enabled
- Manually trigger update: Menu → Help → Check for Updates
- Reinstall desktop version (in extreme cases)
Core Dependency Update Troubleshooting
If core dependency updates fail, follow these troubleshooting steps:
Check Network Connection
If located in mainland China, ensure you can access PyPI or configure a domestic mirror:
Install Core Packages Individually
If batch installation fails, try installing packages individually. First check version requirements in ComfyUI/requirements.txt
:
Then install according to specified versions:
It’s recommended to use the exact version numbers specified in ComfyUI/requirements.txt
. Don’t upgrade to the latest versions independently, as this may cause compatibility issues.
Why Can’t I Find New Features After Updating?
This is one of the most common issues:
- If you’re using the Desktop version, features may lag behind because the desktop version is built on stable releases
- Ensure you’re using the development version (nightly), not the stable version (release)
Additionally, ensure that corresponding dependencies have been successfully updated during the update process. If issues persist after updating, refer to the Dependency Update Troubleshooting section to diagnose problems.
How to Switch Between Development (Nightly) and Stable (Release) Versions?
Differences between versions:
- Characteristics: Contains the latest commit code
- Advantages: Experience the latest features and improvements first
- Risks: May contain undiscovered bugs or unstable factors
- Suitable for: Developers, testers, users wanting to experience the latest features
- Characteristics: Contains the latest commit code
- Advantages: Experience the latest features and improvements first
- Risks: May contain undiscovered bugs or unstable factors
- Suitable for: Developers, testers, users wanting to experience the latest features
- Characteristics: Tested and verified stable code
- Advantages: High stability, suitable for production environments
- Disadvantages: Feature updates have delays, may lag behind development versions by weeks or months
- Suitable for: Users requiring stability, production environment users
Use update_comfyui.bat
instead of update_comfyui_stable.bat
:
Use update_comfyui.bat
instead of update_comfyui_stable.bat
:
Desktop version is typically built on stable releases and doesn’t currently support version switching. If you need the latest features, we recommend:
- Wait for desktop version updates
- Or use portable/manual installation to experience the latest features
What to Do When Errors Occur After Updates?
- Check Dependencies: Run
pip install -r requirements.txt
to ensure all dependencies are updated - Check Custom Nodes: Some custom nodes may be incompatible with new versions
- Roll Back Version: If issues are severe, you can roll back to a previous stable version
If problems occur, refer to our troubleshooting page for solutions.
Troubleshooting
Learn how to troubleshoot ComfyUI issues
How to Stay Updated on New Features?
- GitHub Releases: Check ComfyUI Releases for stable version updates
- GitHub Commits: View latest commits to understand development progress
- Community Discussion: Follow our blog and Twitter for the latest updates