Skip to main content

envshed rollback

Roll back a secret to a specific previous version.

Usage

envshed rollback <key> --version <n> [options]

Arguments

ArgumentDescription
keyThe secret key to roll back (e.g., DATABASE_URL)

Options

FlagDescription
--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