Skip to content

Getting Started

Adam Brady edited this page Oct 4, 2015 · 1 revision

Installation

You can install vaultex using npm by running the following command:

npm install vaultex --save

Instantiation

Creating a new vaultex instance is simple as creating a new instance.

var Vaultex = require('vaultex');
var vaultex = new Vaultex();

You can optionally pass an object as the first parameter, which allows you to override the default values.

Name Default Description
host 127.0.0.1 The host server running vault
port 8500 The port vault is running on
version v1 Version of the vault API to use
secure true Use SSL when connecting (recommended)
ca n/a CA bundle to use, you must set this if using SSL and a self signed certificate
token n/a Token to use for authenticated requests
Clone this wiki locally