Skip to content

Commit 5e75c35

Browse files
committed
v3.1.2
1 parent a0f2215 commit 5e75c35

File tree

3 files changed

+2319
-2038
lines changed

3 files changed

+2319
-2038
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ The Envault CLI will sometimes prompt you to confirm your actions, especially th
3838
npx envault --force
3939
```
4040

41+
### Handling multiple environments
42+
43+
You can store multiple environments instead of overwriting when authenticating a new environment.
44+
45+
You are able to sync a specific `.env` by providing the server and environment ID. This is especially useful if you have multiple `.env` files. For example:
46+
47+
```bash
48+
npx envault envault.server.test 1 llT8J6tEDbtJgSln
49+
npx envault envault.server.test 2 BXYtZdNkQjtWSqE6
50+
```
51+
52+
Now, you may sync each environment:
53+
54+
```bash
55+
npx envault // Will still sync .env from "1"
56+
npx envault envault.server.test 2 --filename=.env.settings // Will sync .env.settings from "2"
57+
```
58+
59+
If no server and environment provided it will default to the first environment that was added.
60+
4161
## Need Help?
4262

4363
🐞 If you spot a bug with Envault, please [submit a detailed issue](https://github.com/envault/envault/issues/new), and wait for assistance.

0 commit comments

Comments
 (0)