s

    Samuel Kohlleffel

    1 year ago
    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?
    Michael Adkins

    Michael Adkins

    1 year ago
    Hey @Samuel Kohlleffel -- you should be using
    prefect run -m your.flow.module --param rebuild=true
    instead of
    python
    s

    Samuel Kohlleffel

    1 year ago
    ok, thank you