<@ULVA73B9P> prefect deploy -n default still asks ...
# ask-marvin
b
@Marvin prefect deploy -n default still asks me "Would you like to build a custom Docker image for this deployment?" How can I get rid of that question and/or autoanswer it (i.e. make it silent)?
m
To suppress interactive prompts in Prefect CLI, including the question about building a custom Docker image, you can set the environment variable
PREFECT_CLI_PROMPT
to
false
. This will disable all interactive prompts during CLI operations. Here's how you can do it:
Copy code
bash
export PREFECT_CLI_PROMPT=false
prefect deploy -n default
This setting ensures that the CLI does not ask for any interactive inputs, making your deployment process silent. For more details, you can refer to the Prefect settings documentation.