You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-115Lines changed: 0 additions & 115 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,8 +142,6 @@ Would you also like to pull your production `.env` to your machine? Run the comm
142
142
$ npx dotenv-vault@latest pull production
143
143
```
144
144
145
-
ℹ️ **🔐 Vault Managed vs 💻 Locally Managed**: The above example, for brevity's sake, used the 🔐 Vault Managed solution to manage your `.env.vault` file. You can instead use the 💻 Locally Managed solution. [See the faq further below](#how-do-i-use--locally-managed-dotenv-vault). Our vision is that other platforms and orchestration tools adopt the `.env.vault` standard as they did the `.env` standard. We don't expect to be the only ones providing tooling to manage and generate `.env.vault` files.
146
-
147
145
<ahref="https://www.dotenv.org/docs/tutorials/environments?r=1">Learn more about environments</a>
148
146
149
147
## 📚 Examples
@@ -401,10 +399,6 @@ $ npx dotenv-vault@latest help
401
399
*[rotatekey](#rotatekey)
402
400
*[decrypt](#decrypt)
403
401
*[versions](#versions)
404
-
*[local](#local-build)
405
-
*[local build](#local-build)
406
-
*[local decrypt](#local-decrypt)
407
-
*[local keys](#local-keys)
408
402
409
403
### `new`
410
404
@@ -814,67 +808,6 @@ If you want to pull a specific version you can do so. For example,
814
808
npx dotenv-vault@latest pull development@v14
815
809
```
816
810
817
-
---
818
-
819
-
### `local build`
820
-
821
-
Build .env.vault from local only
822
-
823
-
Example:
824
-
825
-
```bash
826
-
$ npx dotenv-vault@latest local build
827
-
```
828
-
829
-
This will encrypt the contents of your `.env` file and any `.env.ENVIRONMENT` files you have locally into your `.env.vault` file.
830
-
831
-
### `local decrypt`
832
-
833
-
Decrypt .env.vault from local only
834
-
835
-
Example:
836
-
837
-
```bash
838
-
$ npx dotenv-vault@latest local decrypt dotenv://:[email protected]/vault/.env.vault?environment=development
839
-
```
840
-
841
-
##### ARGUMENTS
842
-
843
-
*[DOTENV_KEY]*
844
-
845
-
Set `DOTENV_KEY` to decrypt .env.vault. Development key will decrypt development, production will decrypt production, and so on.
846
-
847
-
```
848
-
$ npx dotenv-vault@latest local decrypt dotenv://:[email protected]/vault/.env.vault?environment=development
849
-
```
850
-
851
-
### `local keys`
852
-
853
-
List .env.vault local decryption keys from .env.keys file
854
-
855
-
Example:
856
-
857
-
```bash
858
-
$ npx dotenv-vault@latest local keys
859
-
local: Listing .env.vault decryption keys from .env.keys... done
There are a series of **💻 Locally Managed** commands available to you. Locally managed never makes a remote API call. It is completely managed on your machine.
934
-
935
-
**🔐 Vault Managed** adds conveniences like backing up your .env file, secure sharing across your team, access permissions, and version history.
936
-
937
-
**💻 Locally Managed** is a good choice for someone who would prefer to handle this coordination themselves and does not want to trust Dotenv Vault with their secrets.
Great! Next, set the `DOTENV_KEY` on your server. For example in heroku:
968
-
969
-
```shell
970
-
$ heroku config:set DOTENV_KEY=<key string from .env.keys>
971
-
```
972
-
973
-
Commit your `.env.vault` file safely to code and deploy.
974
-
975
-
Your `.env.vault` is decrypted on boot, its environment variables injected, and your app works as expected.
976
-
977
-
Congratulations, your secrets are now much safer than scattered across multiple servers and cloud providers!
978
-
979
864
### Migrating to Dotenvx
980
865
981
866
With dotenvx you put your development, staging, ci, and production secrets IN your code - as encrypted `.env.*` files. So for example, to do production you would
0 commit comments