Jelle
06/07/2024, 6:38 PMprefect deployment apply is deprecatedMarvin
06/07/2024, 6:38 PMprefect 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.
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:
shell
prefect deploy --name deployment-1 --name deployment-2
### Deploying with Patterns
Furthermore, you can deploy deployments that match a certain pattern:
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!