Skip to content

jordyv/consul-dotenv-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul dotenv file importer

Simple CLI tool written in Go to import a .env file in Consul.

Installation

go get -u github.com/jordyv/consul-dotenv-import

Usage

$ consul-dotenv-import -h
Usage: consul-dotenv-import <options> <env file>
  -dry
        Dry run (don't actual put values in Consul)
  -host string
        Consul host (default "http://127.0.0.1:8500")
  -prefix string
        Consul KV prefix
  -token string
        Consul token

Example

Env file:

TEST=foo
BAR=test

Run:

$ consul-dotenv-import -prefix testenv .env
Putting testenv/TEST = foo
Putting testenv/BAR = test

Development

$ git clone https://github.com/jordyv/consul-dotenv-import
$ cd consul-dotenv-import
$ dep ensure
$ go run main.go

About

Simple CLI tool to import dotenv files into Consul KV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published