<@ULVA73B9P> in prefect 3 is ther anywayt to disab...
# marvin-ai
c
@Marvin in prefect 3 is ther anywayt to disable the prompt ? Your Prefect workers will need access to this flow's code in order to run it. Would you like your workers to pull your flow code from a remote storage location when running this flow? [y/n] (y): n
m
thought for 306.6 seconds
Yes. In Prefect 3.x you can disable all interactive CLI prompts. Options: - One-off run: prefix your command with
--no-prompt
Copy code
prefect --no-prompt deploy ./path/to/flow.py:my_flow -n my-deployment
- Environment variable for CI or scripts:
Copy code
PREFECT_CLI_PROMPT=false prefect deploy ./path/to/flow.py:my_flow -n my-deployment
- Persist in your Prefect profile:
Copy code
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.