dotenv-to-consul
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1 • Public • Published

    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]

    Read a .env file and purge its contents from consul kv store

    USAGE
      $ dotenv-to-consul purge-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/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

    Keywords

    Install

    npm i dotenv-to-consul

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    15.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • jspenc72