CLI reference
storeenv rollback
Create a new version equal to an older one (history is kept).
zsh
$ cd ~/code/my-app$ storeenv rollback b8c7ece -m "Back to the first version" --yesThis creates a new version on default identical to b8c7ece.Keys affected: - FEATURE_FLAG - LOG_LEVELdefault v 03f86b8 "Back to the first version"Run "storeenv pull --env default" on machines that need it.
$ storeenv rollback <target>
Arguments
<target> | Version id to return to. |
Flags
--message <value>, -m | Reason, saved as the version message. |
Good to know
- History only moves forward, like git revert: a rollback is a new version equal to an older one.
- Re-key versions can't be rolled back.
Related commands
Global flags
--project <value> | Project as <namespace/name> or its id (default: .storeenv.json, then this repository's remotes). |
--env <value> | Environment name. |
--json | Machine readable output. |
--yes, -y | Skip confirmations. |
--color | Coloured output (--no-color to turn off). Default: true. |
--verbose | Show debug details. |
--api <value> | API base URL of a self-hosted StoreEnv. |
--trust-writer <value> | Trust a writer for this run: @login=SE:XXXX-XXXX-XXXX. |
--allow-unsigned | pull and diff: use values that aren't signed by a trusted writer, after you confirm on a terminal (or with STOREENV_ALLOW_UNSIGNED=1). Never applies to run or copy. |