cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.61k stars 679 forks source link

🚀 Feature Request: Deployment Rollback #1394

Open awthwathje opened 2 years ago

awthwathje commented 2 years ago

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!

sidharthachatterjee commented 2 years ago

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

@nevikashah

awthwathje commented 1 year ago

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

Will that work for a Pages project?