diff --git a/comfy_cli/cmdline.py b/comfy_cli/cmdline.py index 6666e71..ea29279 100644 --- a/comfy_cli/cmdline.py +++ b/comfy_cli/cmdline.py @@ -22,6 +22,7 @@ from comfy_cli.env_checker import EnvChecker from comfy_cli.standalone import StandalonePython from comfy_cli.update import check_for_updates +from comfy_cli.uv import DependencyCompiler from comfy_cli.workspace_manager import WorkspaceManager, check_comfy_repo logging.setup_logging() @@ -566,6 +567,19 @@ def feedback(): rprint("Thank you for your feedback!") +@app.command(hidden=True) +@app.command( + help="Given an existing installation of comfy core and any custom nodes, installs any needed python dependencies" +) +@tracking.track_command() +def dependency(): + comfy_path, _ = workspace_manager.get_workspace_path() + + depComp = DependencyCompiler(cwd=comfy_path) + depComp.compile_deps() + depComp.install_deps() + + @app.command(help="Download a standalone Python interpreter and dependencies based on an existing comfyui workspace") @tracking.track_command() def standalone(