dotenv-to-consul
v0.0.1
Published
Read .env file and populate consul directory with all key values
Downloads
2
Readme
dotenv-to-consul
Cli tool to parse key values from a .env file and populate consul key value store.
Usage
$ npm install -g dotenv-to-consul
$ dotenv-to-consul COMMAND
running command...
$ dotenv-to-consul (-v|--version|version)
dotenv-to-consul/0.0.1 darwin-x64 node-v8.11.1
$ dotenv-to-consul --help [COMMAND]
USAGE
$ dotenv-to-consul COMMAND
...
.env to consul
dotenv-to-consul seed-consul -s http://consul.comany.net:8500 -t <EXAMPLE_TOKEN> -p EXAMPLE/1234
KEY1=value_1
KEY2=value_2
KEY3=value_3
KEY4=value_4
dotenv-to-consul purge-consul -s http://consul.comany.net:8500 -t <EXAMPLE_TOKEN> -p EXAMPLE/1234
Commands
dotenv-to-consul help [COMMAND]
dotenv-to-consul purge-consul [FILE]
dotenv-to-consul read [FILE]
dotenv-to-consul seed-consul [FILE]
dotenv-to-consul help [COMMAND]
display help for dotenv-to-consul
USAGE
$ dotenv-to-consul help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
dotenv-to-consul purge-consul [FILE]
describe the command here
USAGE
$ dotenv-to-consul purge-consul [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
See code: src/commands/purge-consul.ts
dotenv-to-consul read [FILE]
Read a .env file and print the corresponding key value pairs
USAGE
$ dotenv-to-consul read [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
See code: src/commands/read.ts
dotenv-to-consul seed-consul [FILE]
Read a .env file and seed consul kv store
USAGE
$ dotenv-to-consul seed-consul [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-p, --path=path path
-s, --server=server server
-t, --token=token token
See code: src/commands/seed-consul.ts