@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
Marvin
03/12/2025, 7:17 PM
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:
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.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.