vercel rollback
The vercel rollback command is used to roll back production deployments to previous deployments.
vercel rollback [deployment-id or url]Using vercel rollback rolls back to a previous
deployment.
On the hobby plan, you can only roll back to the previous production deployment. If you attempt to pass in a deployment id or url from an earlier deployment, you will be given an error:
To roll back further than the previous production deployment, upgrade to pro
.
Show the status of any current pending rollbacks.
vercel rollback status [project]Using vercel rollback status to check the status of
pending rollbacks.
Examples:
# Check status for the linked project
vercel rollback status
# Check status for a specific project
vercel rollback status my-project
# Check status with a custom timeout
vercel rollback status --timeout 30sThese are options that only apply to the vercel rollback command.
The --timeout option is the time that the vercel rollback command will wait for the rollback to complete. It does not affect the actual rollback which will continue to proceed.
When rolling back a deployment, a timeout of 0 will immediately exit after requesting the rollback.
vercel rollback https://example-app-6vd6bhoqt.vercel.appUsing the vercel rollback command to the
https://example-app-6vd6bhoqt.vercel.app deployment.
The following global options can be passed when using the vercel rollback command:
For more information on global options and their usage, refer to the options section.
Was this helpful?