Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing in parameters to a locally run flow through the CLI #17133

Open
robfreedy opened this issue Feb 13, 2025 · 0 comments
Open

Passing in parameters to a locally run flow through the CLI #17133

robfreedy opened this issue Feb 13, 2025 · 0 comments
Labels
enhancement An improvement of an existing feature

Comments

@robfreedy
Copy link
Contributor

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

@robfreedy robfreedy added the enhancement An improvement of an existing feature label Feb 13, 2025
@robfreedy 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant