<@ULVA73B9P> how do I deploy all deployments in a ...
# ask-marvin
j
@Marvin how do I deploy all deployments in a prefect.yaml file?
prefect deployment apply
is deprecated
m
The
prefect deployment apply
command has indeed been deprecated. However, you can deploy all deployments specified in your
prefect.yaml
file using the
prefect deploy
command. Here's a summary and a helpful example: ### Deploying All Deployments To deploy all deployments specified in your
prefect.yaml
file, you can use the
--all
flag.
Copy code
shell
prefect deploy --all
### Deploying Specific Deployments You can also deploy specific deployments by specifying their names using the
--name
flag. For example, to deploy multiple deployments:
Copy code
shell
prefect deploy --name deployment-1 --name deployment-2
### Deploying with Patterns Furthermore, you can deploy deployments that match a certain pattern:
Copy code
shell
prefect deploy -n my-flow/* -n *dev/my-deployment -n dep*prod
This command deploys: - All deployments from the flow
my-flow
. - All flows ending in
dev
with a deployment named
my-deployment
. - All deployments starting with
dep
and ending in
prod
. ### Links to Relevant Documentation: - Prefect Deployment Guide So, instead of using the deprecated
prefect deployment apply
, use
prefect deploy --all
for deploying all deployments. If you have any further questions or run into issues, feel free to ask!
1