Docs / CLI reference / pull
storeenv pull
Download, decrypt and write the env files you can read.
$ storeenv pull [--env <name>] [--all] [--service <name>] [--version <id>] [--force] [--stdout]
Flags
| --env <name> | Pull one environment. |
| --all | Pull every environment you can read. |
| --version <id> | Pull an exact version. |
| --force | Overwrite local changes. A backup is kept next to the file. |
| --stdout | Print the decrypted file and write nothing. This is logged. |
Example
$ storeenv pull --env production + backend/.env.production 4 of 14 keys (10 not shared with you) Restored 1 file.
Good to know
- By default pull restores the default environment plus every environment whose file already exists locally.
- Local changes that were never pushed are kept until you choose what to do.
Global flags
--project <owner/name>, --env <name>, --json, --yes, --no-color, --verbose, --api <url>