<@ULVA73B9P> prefect deploy --prefect-file &lt;yam...
# ask-marvin
r
@Marvin prefect deploy --prefect-file <yaml file> gives me a prompt to schedule the deployment. i am running as part of ci, how do i disable the promt
m
thought for 88.5 seconds
Use the top-level
--no-prompt
flag so the CLI runs non-interactively:
Copy code
prefect --no-prompt deploy --prefect-file path/to/prefect.yaml
Alternatively, set the env var in CI:
Copy code
export PREFECT_CLI_PROMPT=false
prefect deploy --prefect-file path/to/prefect.yaml
Notes: - Place
--no-prompt
immediately after
prefect
(it’s a global CLI option). - With prompts disabled, if your
prefect.yaml
doesn’t define a schedule, the deployment will be created unscheduled. Docs: Prefect 3.x deployment config