CLI reference
storeenv restore
Write the env files saved in a local commit back to disk (works offline).
Global flags Offline
zsh
$ cd ~/code/my-app$ storeenv restore fdab642 --yesYour env files already match that commit.
$ storeenv restore <commit>
Arguments
<commit> | Local commit id from storeenv log --local. |
Good to know
- Works on local commits that aren't pushed yet. For pushed versions use storeenv rollback or storeenv pull --version.
- Files that differ are backed up next to the original first.
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. |