<@ULVA73B9P> I am trying to deploy all my flows in...
# ask-marvin
r
@Marvin I am trying to deploy all my flows in the prefect.yaml file. I'm doing it in the CLI by entering the CMD: prefect --no-prompt --all deploy but I get the error message No such option: -a
m
It looks like there might be a small misunderstanding about the command or the options you're using. In both Prefect 2.x and 3.x versions, you can deploy all flows using the command
prefect deploy --all
. This is documented as the way to deploy all deployments, according to the Prefect 2.x GUID and Prefect 3.x documentation: Prefect 2.x documentation mentions: You can deploy all deployments using the
--all
flag with the command:
prefect deploy --all
. Prefect 3.x documentation confirms: The
--all
option is used to deploy multiple deployments:
prefect deploy --all
. However, the option
--no-prompt
is not mentioned in the context of this specific task. If the error you're encountering is "No such option: -a," double-check there's not a mix-up with another similar command or custom alias in your setup because Prefect's
--all
flag should be valid for deploying all flows. Here are the links to the documentation if you need further information: - Prefect 2.x Deployments: https://docs-2.prefect.io/latest/guides/prefect-deploy/ - Prefect 3.x Deployments: https://docs-3.prefect.io/3.0/deploy/infrastructure-concepts/prefect-yaml Please make sure your CLI is up to date with the latest version of Prefect to avoid any deprecation issues. Let me know if you have further questions!
n
i think it’s just an order problem, ie the all flag should come after the deploy sub command
whereas —no-prompt is a top level CLI option (applies to all subcommands)
r
thank you it works now
catjam 1