Create your .env
files and start processes using Vault.
Homebrew and Linuxbrew
You can install
brew
from https://brew.sh.
shell
brew tap sjparkinson/vdot https://github.com/sjparkinson/vdot
brew install vdot
Cargo
You can install
cargo
from https://www.rust-lang.org/tools/install.
shell
cargo install vdot
Download
You can download executables for macOS, Linux, and Windows from https://github.com/sjparkinson/vdot/releases/latest.
``` vdot
USAGE:
vdot [FLAGS] [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information -v, --verbose Verbose mode
OPTIONS:
-c, --command
ARGS:
The following assumes you are using version two of Vault's key-value secret engine. Check out vdot --help
for more information.
bash
$ vault kv put secret/foo-bar ENV=production LOG_LEVEL=info
$ vault kv put secret/fizz-buzz LOG_LEVEL=debug
$ vdot --vault-token "$(cat ~/.vault-token)" secret/data/foo-bar secret/data/fizz-buzz
info: saved 2 environment variables to .env
$ cat .env
ENV=production
LOG_LEVEL=info
Instead of passing in the --vault-*
options, you can define them as environmnent variables.
The Vault CLI defines that VAULT_TOKEN
and VAULT_ADDR
can be used. These two environment variables are also supported by vdot.