<@ULVA73B9P> what can you tell me about `prefect d...
# ask-marvin
n
@Marvin what can you tell me about
prefect deploy
?
m
The
prefect deploy
command is used to deploy flows in Prefect. To deploy your flows, you need to ensure that your Docker daemon is running first. You can deploy all the flows with
prefect deploy --all
or deploy them individually by specifying their names, for example,
prefect deploy -n hello/default
or
prefect deploy -n hello/arthur
. Once the deployments are successfully created, you can run them from the Prefect UI or the CLI using commands like
prefect deployment run hello/default
or
prefect deployment run hello/arthur
. Furthermore, it's recommended to run
prefect deploy
commands from the root level of your repository. In the Prefect 2.x deployment pattern using workers rather than agents, each repository should have a single
prefect.yaml
file at the root that contains the deployment configuration for all flows in that repo. The
prefect deploy
command is part of the deployment creation wizard, which will guide you through the process and ultimately save the configuration for the deployment in a
prefect.yaml
file. This file can be used to edit and define multiple deployments for the repo. You can configure a pull action in your
prefect.yaml
file, referencing the configuration you used as your storage block. This workflow allows for creating and managing deployments that utilize workers. For more detailed information and examples, you can visit the Prefect documentation on Deployment in Kubernetes and the Upgrade Guide from Agents to Workers.