Archived. This project depends on a broken fork of node-vault that uses got v9 API calls with got v14 installed, requiring fragile postinstall patches. See the issue for options (drop the fork, fix it, or replace the dependency).
Read and print secrets from Hashicorp Vault
$ npm install -g vault-read
$ vault-read [-u|--username Vault user] [-p|--password Vault password] [-a|--address Vault address] PATH [KEY]
$ vault-read (-v|--version|version)
vault-read/0.0.0 linux-x64 node-v10.16.3
$ vault-read --help
Read secrets from the vault
USAGE
$ vault-read PATH [KEY]
ARGUMENTS
PATH Path from which to read the secret
KEY Specific key from the data store in the path
OPTIONS
-a, --address=address The Vault url, alternatively provide CI_VAULT_ADDRESS env variable
-h, --help show CLI help
-p, --password=password The LDAP password for Vault, alternatively provide CI_VAULT_PASSWORD env variable
-u, --username=username The LDAP username for Vault, alternatively provide CI_VAULT_USER env variable
-v, --version show CLI version