diff --git a/README.md b/README.md index f7984baa..c4e70f42 100644 --- a/README.md +++ b/README.md @@ -195,14 +195,13 @@ You need to deploy your secrets in a cloud-agnostic manner? Use a `.env.vault` f **Note: Currently released as RC Candidate [dotenv@16.1.0-rc2](https://www.npmjs.com/package/dotenv/v/16.1.0-rc2)** -Install dotenv-vault. +Install the dotenv-vault cl - [github.com/dotenv-org/dotenv-vault](https://github.com/dotenv-org/dotenv-vault). ```shell $ brew install dotenv-vault ``` -(see [dotenv.org/install](https://www.dotenv.org/install) for other install options) -Build your encrypted `.env.vault` file from your local .env file. +Generate your `.env.vault` file. ```shell $ dotenv-vault local build @@ -210,24 +209,18 @@ $ dotenv-vault local build This creates two files: -* `.env.vault` - containing an encrypted version of your .env file -* `.env.keys` - containing the decryption key +* `.env.vault` - encrypted .env file +* `.env.keys` - decryptions keys -Boot your application using the encrypted `.env.vault` file instead of your `.env` file. +Boot using `.env.vault`. ``` $ DOTENV_KEY= npm start -``` - -If it worked, you'll see the message: -```shell [dotenv@16.1.0][INFO] Loading env from encrypted .env.vault ``` -(This [blog post](https://dotenv.org) goes into a full Hello World example.) - -Great, now set the `DOTENV_KEY` on your server. For example in heroku: +Great! Next, set the `DOTENV_KEY` on your server. For example in heroku: ```shell $ heroku config:set DOTENV_KEY= @@ -235,7 +228,9 @@ $ heroku config:set DOTENV_KEY= Commit your `.env.vault` file safely to code and deploy. -Your `.env.vault` fill be decrypted on boot, its environment variables injected, and your app work as expected. Congratulations, your secrets are now much safer than scattered across multiple servers and cloud providers! +Your `.env.vault` is decrypted on boot, its environment variables injected, and your app works as expected. + +Congratulations, your secrets are now much safer than scattered across multiple servers and cloud providers! This [blog post](https://dotenv.org) goes into a full Hello World example. ## 🌴 Manage Multiple Environments