workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🚀 Feature Request: Deployment Rollback

Open awthwathje opened this issue 2 years ago • 1 comments

Describe the solution

Hello and first of all a huge thank you for building this groundbreaking platform!

I want to file a quick suggestion to enhance Wrangler CLI. So more stuff could be done without the need to access the Dashboard (especially given the fact that not everyone in the company has an access to the Dashboard, which is increasingly the case in bigger companies).

Deployment Rollback

This feature is already available in the Dashboard, so porting it to Wrangler shouldn't be a big effort, but it can make a big impact to help teams with organizing their workflows to easily recover from some unwanted deployment regressions.

The API could be as simple as:

wrangler pages deployment rollback --project-name myproject --to-id 1xx11xx1x1xx1x1xx1x1

where --to-id flag specifies the id of the deployment to roll back to.

Thanks!

awthwathje avatar Jul 02 '22 15:07 awthwathje

Thanks for the feature request! I'll keep this open for now to track this. Cheers!

@nevikashah

sidharthachatterjee avatar Jul 13 '22 14:07 sidharthachatterjee

We now have this https://developers.cloudflare.com/workers/wrangler/commands/#rollback

Will that work for a Pages project?

awthwathje avatar Jun 20 '23 07:06 awthwathje