<@ULVA73B9P> when running `prefect deploy --all`, ...
# ask-marvin
a
@Marvin when running
prefect deploy --all
, how can I prevent it from asking me if I want to configure a schedule?
m
thought for 239.5 seconds
Use Prefect’s global “no prompt” switch. - Run:
Copy code
prefect --no-prompt deploy --all
Note:
--no-prompt
is a global flag on
prefect
(it must come before `deploy`;
prefect deploy --no-prompt ...
will error). - Or set the env var:
Copy code
PREFECT_CLI_PROMPT=False prefect deploy --all
Either approach disables all interactive prompts during deployment, including the “configure a schedule?” prompt. If you do want schedules but still be non-interactive, define them in your
prefect.yaml
(or pass schedule flags) and keep
--no-prompt
on.