https://prefect.io logo
j

Jeff Hale

07/12/2023, 1:27 PM
Use a flow from the 103 lab • Make a deployment via interactive CLI commands • Start a worker • Run a deployment from the UI • See the flow run logs in the UI • Stretch: Create a deployment that has default parameters & override the default parameters at runtime in the UI
v

Varun Srinivasan

07/12/2023, 1:44 PM
@Jeff Hale how do we pass command line params while running flows? we tried
Copy code
prefect deployment run <flow-run> --param name=Bob --param height=7
is there another way to do it?
j

Jeff Hale

07/12/2023, 1:47 PM
CLI runs coming up soon. But that looks correct. What message are you getting?
v

Varun Srinivasan

07/12/2023, 2:03 PM
@Christopher Boyd mentioned to use
--params
Copy code
prefect deployment run <flow-run> --params='{"name":"Bob","height":7}'
both works fine. i thought a json based input would be easy if there are more than one param
👍 1
j

Jeff Hale

07/12/2023, 2:04 PM
That’s another option, but both should work.
🙌 1