non-interactive mode
LucasMoskun opened this issue · 3 comments
LucasMoskun commented
I am currently using comfy-cli in a dockerfile, however it requires user interaction, it asks to enable tracking to be specific.
This causes the docker build to crash.
Here's example error output
=> ERROR [ 9/10] RUN comfy --workspace=. install && comfy set-default . 1.4s
------
> [ 9/10] RUN comfy --workspace=. install && comfy set-default .:
#12 1.246 Do you agree to enable tracking to improve the application? [y/N]: Aborted.
------
executor failed running [/bin/sh -c comfy --workspace=. install && comfy set-default .]: exit code: 1
It would be nice to set comfy into non interactive mode, that doesn't prompt user, for devops situation like this.
LucasMoskun commented
Was able to echo past the tracking data, but this one has me a bit more blocked... Is there already a way to use flags to specify this?
> [ 9/11] RUN echo "N" | comfy --workspace=. install:
#12 0.932 Do you agree to enable tracking to improve the application? [y/N]: Error: The file 'pyproject.toml' does not exist.
#12 1.410 ╭──────────────────────────── 🔔 Update Available! ────────────────────────────╮
#12 1.410 │ ✨ Newer version of comfy-cli is available: 0.0.22. │
#12 1.410 │ Current version: None │
#12 1.410 │ Update by running: 'pip install --upgrade comfy-cli' ⬆ │
#12 1.410 ╰──────────────────────────────────────────────────────────────────────────────╯
#12 1.424 Warning: Input is not a terminal (fd=0).
#12 1.453 ? What GPU do you have? (Use arrow keys)
#12 1.453 » Nvidia
#12 1.453 Amd
#12 1.453 Intel Arc
#12 1.453
#12 1.453
#12 1.453
#12 1.453 ? What GPU do you have? (Use arrow keys)
#12 1.457
#12 1.459 Aborted.
------
executor failed running [/bin/sh -c echo "N" | comfy --workspace=. install]: exit code: 1
ltdrdata commented
You can install like this
comfy -y install --nvidia
in your case
echo "N" | comfy --workspace=. install --nvidia
You can check flags through comfy install --help
yoland68 commented
Renamed to --skip-prompt
. You can do
comfy --skip-prompt install --nvidia