<@ULVA73B9P> is there a way to use the prefect CLI...
# ask-marvin
m
@Marvin is there a way to use the prefect CLI's "prefect deploy" to create the YAML for a deployment without actually deploying it to the server? We'd like to be able to create and commit these to source control for review before deploying them.
m
Unfortunately, it seems there's no direct method to create YAML files using the
prefect deploy
command without also deploying to the server. However, there is ongoing discussion and feature requests about enhancing the CLI for such functionalities. You might need to generate the deployment YAML manually or use other means to automate this process within your CI/CD pipeline. A potential workaround could be to use the Prefect API or client programmatically to generate and handle these configurations without actual deployment until ready. For more detailed discussions or if you want to contribute to this feature, you might find these GitHub issues relevant: - Expose additional functionality on the cli deploy command to prevent redundant build steps - prefect deploy --all only needs to run build steps once - does it for each deployment Should you need any code examples or further assistance with automating deployment configurations, feel free to ask.