Documentation

Install the CLI, learn the model and look up every command.

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 --yes
Your 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.

Global flags

--project <value>Project as <namespace/name> or its id (default: .storeenv.json, then this repository's remotes).
--env <value>Environment name.
--jsonMachine readable output.
--yes, -ySkip confirmations.
--colorColoured output (--no-color to turn off). Default: true.
--verboseShow 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-unsignedpull 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.