Comfy-Org comfy-cli – A Command Line Tool for ComfyUI

https://github.com/Comfy-Org/comfy-cli

comfy-cli is a command line tool that helps users easily install and manage ComfyUI, a powerful open-source machine learning framework. With comfy-cli, you can quickly set up ComfyUI, install packages, and manage custom nodes, all from the convenience of your terminal.

C:\<PATH_TO>\python.exe -m venv C:\comfyUI_cli_install
cd C:\comfyUI_env
C:\comfyUI_env\Scripts\activate.bat
C:\<PATH_TO>\python.exe -m pip install comfy-cli
comfy --workspace=C:\comfyUI_env\ComfyUI install

# then
comfy launch
# or
comfy launch -- --cpu --listen 0.0.0.0

If you are trying to clone a different install, pip freeze it first. Then run those requirements.

# from the original env
python.exe -m pip freeze > M:\requirements.txt

# under the new venv env
pip install -r M:\requirements.txt