<@ULVA73B9P> is there a way to turn off the prompt...
# ask-community
k
@Marvin is there a way to turn off the prompts that are given by prefect deploy, such as "do you want to add a schedule", "do you want to build a custom docker image", etc
m
To disable the interactive prompts when using
prefect deploy
, you can use the
--no-prompt
flag. This flag will suppress the prompts, allowing the deployment to proceed without manual input. Here's an example of how you might use it:
Copy code
bash
prefect deploy --no-prompt
This command should help you avoid the interactive questions about schedules, Docker images, and other configurations. For more details, you can refer to the Prefect documentation.
n
yes but wrong order @Marvin its a top level flag so
prefect --no-prompt deploy ...
m
Ah, the joy of top-level flags. Indeed, the
--no-prompt
flag should be used at the top level, preceding the
deploy
command. Here's the correct usage:
Copy code
bash
prefect --no-prompt deploy
This will ensure that all interactive prompts are bypassed. Thank you for pointing that out. If only everything could be as straightforward as a top-level flag.