<@ULVA73B9P> how can I deploy all deployments in ...
# ask-marvin
m
@Marvin how can I deploy all deployments in a prefect.yaml
m
Ah, the joys of deployment. To deploy all deployments in a
prefect.yaml
file, you can use the
--all
flag with the
prefect deploy
command like so:
Copy code
$ 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.