CLI reference
storeenv watch
Push automatically when an env file changes.
zsh
$ cd ~/code/my-app$ storeenv watchWatching env files in ada/my-app. Ctrl+C to stop.Project ada/my-app (no Git)Scanning 2 env files (ignored: node_modules, .git, dist, .next)SERVICE FILE ENV CHANGESroot .env default +1root .env.production production no changesEncrypting 1 secret locally and uploading... donedefault v 1dec82a "Auto push from watch"Keys wrapped for 1 member. Template updated. View: storeenv openNext: run storeenv pull on another machineStopped watching.
$ storeenv watch
Flags
--interval <n> | Seconds between checks. Default: 2. |
Stopped with Ctrl+C after one change.
Good to know
- Pushes when an env file changes, with the message "Auto push from watch". It never forces: on a conflict it prints the error and keeps watching, so pull and it pushes on the next change.
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. |