I'm having trouble using parameters when running m...
# ask-community
s
I'm having trouble using parameters when running my flow from the CLI. It works correctly when I run the flow by calling
flow.run(parameters=dict(rebuild="true"))
but when I try to run
python -m python.module --param rebuild=true
the parameter is not recognized and it runs the flow with the default value. What am I doing wrong here?
z
Hey @Samuel Kohlleffel -- you should be using
prefect run -m your.flow.module --param rebuild=true
instead of
python
s
ok, thank you