CLI reference
storeenv env
Manage environments: list, use, create, rename, protect, rm.
zsh
$ cd ~/code/my-app$ storeenv env lsENVIRONMENT SOURCE FILES KEYS LATESTdefault .env 1 4 1dec82aproduction .env.production 1 2 e5314c9 protectedtemplate generated 1 4 none read-only
$ storeenv env <action> [name] [new-name]
Arguments
<action> | list environments, pick one for this folder (use), or create, rename, protect, unprotect or remove one. One of: ls, list, use, create, rename, protect, unprotect, rm. |
<name> | Environment name. |
<new-name> | New name (rename). |
Flags
--clear | With use: forget the choice for this folder. |
--protected | Require production access (create). |
More examples
$ cd ~/code/my-app$ storeenv env create stagingCreated environment staging. It maps to .env.staging
Good to know
- env use <name> picks the environment pull and run use in this folder on this machine only; env use --clear forgets it.
- Protected environments (production by default) need production access on the member as well as a grant.
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. |