dotenv-to-consul
Read .env file and populate consul directory with all key values
Last updated 3 months ago by jspenc72 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dotenv-to-consul 
SYNC missed versions from official npm registry.

dotenv-to-consul

Cli tool to parse key values from a .env file and populate consul key value store.

oclif Version CircleCI Codecov Downloads/week License

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]

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

Current Tags

  • 0.0.1                                ...           latest (3 months ago)

1 Versions

  • 0.0.1                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |