Rollback
How Releases Work
Every ev push and ev promote creates an immutable release snapshot. A release contains:
- The full set of secret key-value pairs at that point in time
- Timestamp and author
- An optional message (from
ev push -morev rollback -m) - A unique release ID (shown in
ev log)
No release is ever deleted. The full history is always available.
Rolling Back
There are three ways to identify the release to roll back to:
Interactive
Run ev rollback with no arguments to see recent releases and choose one:
Relative Offset
Use ~N to go back N releases from the current latest:
Partial Release ID
Copy a release ID from ev log — you only need enough characters for a unique match:
What Rollback Does
- Fetches the target release from the server
- Creates a new release with the target release's secrets as the contents
- Records who performed the rollback and when
- Leaves all intermediate releases intact — nothing is deleted
The server is now at the rolled-back state. Your local .env is not changed automatically.
After Rollback
Run ev pull to update your local .env to match the new server state:
Limitations for External Backends
When using AWS Secrets Manager as a backend, ev rollback is not supported. AWS SM has its own versioning system (AWSPREVIOUS and version stages) that you can use instead.
For full rollback support including the ev rollback command, use ev's default encrypted backend.