juana
12/12/2023, 9:29 AMMarvin
12/12/2023, 9:30 AMprefect deployment run
command followed by the deployment name or ID. If you need to provide custom parameter values for the flow run, you will be able to do so through the Prefect UI by going to the details page for the deployment, selecting "Run," then "Custom." There, you can provide custom values for any editable deployment fields, including parameters.
Here's a general example of how to use the Prefect CLI to create a flow run from a deployment with custom parameters:
shell
prefect deployment run --name DEPLOYMENT_NAME --param PARAM_NAME=PARAM_VALUE
Replace DEPLOYMENT_NAME
with the name of your deployment and PARAM_NAME=PARAM_VALUE
with the parameter name and the value you wish to pass to the flow.
For provides exact syntax and options, checking the Prefect CLI help might be useful:
shell
prefect deployment run --help
This command would give you detailed information about the command usage and its options, including how to pass parameters.
what is the command needed to create a flow run from a deployment using the cli if i need to pass in a parameter to the flow