envshed rollback
Roll back a secret to a specific previous version.
Usage
envshed rollback <key> --version <n> [options]
Arguments
| Argument | Description |
|---|---|
key | The secret key to roll back (e.g., DATABASE_URL) |
Options
| Flag | Description |
|---|---|
--version <n> | (Required) Target version number to restore |
-o, --org <slug> | Organization slug |
-p, --project <slug> | Project slug |
-e, --env <slug> | Environment slug |
Example
$ envshed rollback DATABASE_URL --version 2
my-org / my-project / production
✔ Rolled back DATABASE_URL to v2
Behavior
- Rolling back creates a new version (e.g., rolling back from v3 to v2 creates v4 with the v2 value)
- The rollback is recorded in the audit log
- The environment version is incremented (triggering staleness detection for other CLI users)
See Also
envshed versions— View version history for a secret- Secret Versioning — Feature overview