Comfy-Org / comfy-cli

Command Line Interface for Managing ComfyUI
https://comfydocs.org/comfy-cli/getting-started
GNU General Public License v3.0
123 stars 15 forks source link

add option `-y` to support auto installation? #71

Closed liusida closed 1 month ago

liusida commented 1 month ago

I was trying to write a script to automatically use comfy-cli to install comfyUI. But I got stuck here:

(comfy-cli) PS E:\> comfy --workspace=E:/comfy-2 install --nvidia
Install from https://github.com/comfyanonymous/ComfyUI to E:\comfy-2? [y/N]: Aborted.
(comfy-cli) PS E:\> comfy --workspace=E:/comfy-2 install --nvidia -y
Usage: comfy install [OPTIONS]
Try 'comfy install --help' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ No such option: -y                                                                                                   │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

How could i avoid pressing this Y key?

ltdrdata commented 1 month ago

try comfy -y --workspace=E:/comfy-2 install --nvidia

https://github.com/yoland68/comfy-cli/issues/47

And you can use --skip-prompt

liusida commented 1 month ago

yes! --skip-prompt works~ Sorry didn't notice that in document xD