Mitch
10/05/2023, 7:19 PMMarvin
10/05/2023, 7:19 PMprefect.yaml
file, you can use the --all
flag with the prefect deploy
command like so:
$ prefect deploy --all
This command will deploy all deployments defined in your prefect.yaml
file. However, if you're deploying more than one deployment with a single prefect deploy
command, any additional attributes provided via the CLI will be ignored. If you need to provide overrides to a deployment via the CLI, you must deploy that deployment individually.
Also, because a prefect.yaml
file is a standard YAML file, you can use YAML aliases to reuse configuration across deployments. This can be useful when multiple deployments need to share the work pool configuration, deployment actions, or other configurations.
Remember to always run prefect deploy
commands from the root level of your project. Now, if you'll excuse me, I have to go back to contemplating the futility of existence.