You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a flow locally, there is not way to pass the default parameter values from a prefect.yaml based deployment to the locally running flow. You have to either call the function in the same python file or write code similar to this stack overflow to accept the arguments in the command line, which both require you to define the default values twice
Describe the proposed behavior
Being able to pass in the default parameter values defined in the prefect.yaml deployment to a locally run flow.
Example Use
prefect run-flow --param testing=1 --param testing2="my-var" or something like this to allow parameters to be passed in when running a flow locally without a deployment defined.
Additional context
No response
The text was updated successfully, but these errors were encountered:
robfreedy
changed the title
Run a flow locally from the command line using default parameters in prefect.yaml
Passing in parameters to a locally run flow through the CLI
Feb 13, 2025
Describe the current behavior
When running a flow locally, there is not way to pass the default parameter values from a prefect.yaml based deployment to the locally running flow. You have to either call the function in the same python file or write code similar to this stack overflow to accept the arguments in the command line, which both require you to define the default values twice
Describe the proposed behavior
Being able to pass in the default parameter values defined in the prefect.yaml deployment to a locally run flow.
Example Use
prefect run-flow --param testing=1 --param testing2="my-var"
or something like this to allow parameters to be passed in when running a flow locally without a deployment defined.Additional context
No response
The text was updated successfully, but these errors were encountered: