chase albright
12/06/2025, 3:24 PMMarvin
12/06/2025, 3:24 PMMarvin
12/06/2025, 3:30 PM--no-prompt
prefect --no-prompt deploy ./path/to/flow.py:my_flow -n my-deployment
- Environment variable for CI or scripts:
PREFECT_CLI_PROMPT=false prefect deploy ./path/to/flow.py:my_flow -n my-deployment
- Persist in your Prefect profile:
prefect config set PREFECT_CLI_PROMPT=false
Notes:
- Disabling prompts will skip the “pull code from remote storage” question. If you do want remote code pulling, define your source ahead of time (e.g., in prefect.yaml with a pull step or use flow.from_source(...).deploy(...)) so the CLI doesn’t need to ask. If you don’t define a remote source, Prefect will proceed assuming your workers have local access to the code.