cli icon indicating copy to clipboard operation
cli copied to clipboard

Promote draft deploy to production using the CLI

Open theJenix opened this issue 2 years ago • 0 comments

Which problem is this feature request solving?

Currently my CI/CD uses the netlify CLI to push built artifacts into a draft deploy or a production deploy; currently, production is indicated by a specific git branch , e.g. if "deploy" is built it pushes to prod, or if any other branch is built it pushes to a draft deploy with the branch name in the deploy name. I realized I would like better control over this process without having to maintain a special branch.

Describe the solution you'd like

This could be fixed by adding a command line option to netlify deploy to promote a previous draft deploy to prod. It could either be a wholly separate subcommand e.g. netlify deploy promote --from= DEPLOY_ID_OR_ALIAS, or it could be an option to netlify deploy --prod, e.g. netlify deploy --prod --from=DEPLOY_ID_OR_ALIAS.

Pull request (optional)

  • [ ] I can submit a pull request.

theJenix avatar Oct 20 '23 19:10 theJenix