Hi, with Prefect 2.0, how to use command line to run a flow with parameters (prefect deployment run id ......etc)
✅ 1
z
Zanie
12/06/2022, 3:32 PM
Hi! You can use
prefect deployment run <name> --param x=1 --param y=2
Zanie
12/06/2022, 3:32 PM
You can also use
--params
to pass parameters in bulk or via stdin.
p
Patrick Tan
12/06/2022, 3:33 PM
Thanks!
Patrick Tan
12/06/2022, 3:45 PM
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
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.