Ravish Mallya
09/09/2025, 8:47 AMMarvin
09/09/2025, 8:47 AMMarvin
09/09/2025, 8:49 AM--no-prompt flag so the CLI runs non-interactively:
prefect --no-prompt deploy --prefect-file path/to/prefect.yaml
Alternatively, set the env var in CI:
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