Hi, with Prefect 2.0, how to use command line to run a flow with parameters (prefect deployment run...
p
Hi, with Prefect 2.0, how to use command line to run a flow with parameters (prefect deployment run id ......etc)
1
z
Hi! You can use
prefect deployment run <name> --param x=1 --param y=2
You can also use
--params
to pass parameters in bulk or via stdin.
p
Thanks!
prefect deployment run 'pgvs_load_etl/dev-ecs' --param datestring=2022-11-18T16:27 --param config_file=s3://worthpoint-vision-dev/config/config-embed-to-index-dev.yaml Usage: prefect deployment run [OPTIONS] [NAME] Try 'prefect deployment run --help' for help. Error: No such option: --param
z
Perhaps you are on an older version?
p
right, this project is 2.2
let me upgrade
it is working.. thanks again for your help
529 Views