0.0.2 • Published 7 years ago

vault2env v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Originally located here: https://github.com/kiwicom/vault2env-js

This utility exposes one binary: vault2env. It let's you easily load environment variables from your Vault instance and save them in .env file.

Install

yarn add @kiwicom/vault2env --dev

Usage

Basic usage:

yarn vault2env --token=[vault-token] --addr=[vault-addr] --path=secret/path/to/envs

Vault token and address can be set also as env variables - just like with the vault command:

VAULT_TOKEN=[token] VAULT_ADDR=[addr] vault2env --path=secret/path/to/envs

List of CLI options

OptionDefault?Required?Description
--token-yesVault token
--addr-yesUrl address to Vault
--path-yesVault path to desired secrets
--forcefalsenoOverwrite .env file if already exists