🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

vault-cli

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vault-cli

CLI for HashiCorp's Vault

Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
16
-15.79%
Maintainers
1
Weekly downloads
 
Created
Source

Vault CLI

npm version

CLI for HashiCorp's Vault.

Assumptions:

  • Requires Node >= 7.
  • GitHub and Token are the only supported Auth Backends.
  • Your secret endpoint URL is - VAULT_ADDR/v1/secret/project/environment.

Install

$ npm install vault-cli -g

Usage

Add environment variables:

$ export VAULT_ADDR=ADDRESS_TO_THE_VAULT_SERVER
$ export VAULT_AUTH_TOKEN=YOUR_VAULT_TOKEN
$ export VAULT_AUTH_METHOD=AUTH_METHOD

VAULT_AUTH_METHOD must be either token or github

Help

$ vault-cli help

Read ALL Secrets

$ vault-cli PROJECT ENVIRONMENT read

Want to create a .env file in the current directory?

$ vault-cli PROJECT ENVIRONMENT dotenv

Add a SINGLE Secret

$ vault-cli PROJECT ENVIRONMENT add SECRET_NAME SECRET_VALUE

Remove a SINGLE Secret

$ vault-cli PROJECT ENVIRONMENT remove SECRET_NAME SECRET_VALUE

FAQs

Package last updated on 16 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts