Creates a .env file from vault secrets
npm install -g vault-dotenv
Open a terminal and cd to a directory where you want to create the file
vault-dotenv -a http://127.0.0.1:8200 -t <token>
Usage: vault-dotenv [options]
Options:
-a ADDRESS, --address ADDRESS Vault server address, if no address is
given tries to get the address from
the env var VAULT_ADDR.
Default: http://127.0.0.1
-t TOKEN, --token TOKEN Authentication token of Vault. if no address is
given tries to get the address from
the env var VAULT_TOKEN.
-f, --force Override the current .env file
Thanks goes to these wonderful people (emoji key):
Emmanuel Vazquez 🚧 👀 📖 | Juan Ignacio Gipponi 💻 🚧 👀 🤔 |
This project follows the all-contributors specification. Contributions of any kind welcome!