Security

DOTENV_KEY

You can view it with npx dotenv-vault keys. Set it on your server's environment variables after running npx dotenv-vault build.

Example

Here's an example of a DOTENV_KEY.

dotenv://:[email protected]/vault/.env.vault?environment=production

Viewing

You can view a DOTENV_KEY by running the keys command.

$ npx dotenv-vault keys
remote:   Listing .env.vault decryption keys... done
 environment DOTENV_KEY
 ─────────── ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 development dotenv://:[email protected]/vault/.env.vault?environment=development
 ci          dotenv://:[email protected]/vault/.env.vault?environment=ci
 staging     dotenv://:[email protected]/vault/.env.vault?environment=staging
 production  dotenv://:[email protected]/vault/.env.vault?environment=production

Set DOTENV_KEY on your infrastructure

Specify an environment to view that key alone.

$ npx dotenv-vault keys production
remote:   Listing .env.vault decryption keys... done
dotenv://:[email protected]/vault/.env.vault?environment=production