Skip to content

Console utilities and libraries for projects in ilink-pro-team

License

Notifications You must be signed in to change notification settings

i-link-pro-team/ilink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ilink-console-tools

Console ilink tools

npm version monthly downloads

env-to-consul - Copy content of .env file(s) to consul

npx ilink-console-tools "env-to-consul" "--help"

Usage: ilink-console-tools env-to-consul [options]

Copy content of .env file(s) to consul

Options:
  -f,--path [string]            path to file with .env variables or path to folder with many .env files (default: .env)
  -h,--consul-host [string]     host of consul server (default: localhost)
  -p,--consul-port [string]     port of consul server (default: 8500)
  -k,--consul-key [string]      root key to append .env file(s)
  -t,--consul-token [string]    token for work with consul server
  -c,--consul-clear [boolean]   clear all values and sub values in consul key (default: false)
  -d,--consul-dc [string]       dc of consul server
  -s,--consul-secure [boolean]  work in secure mode (default: false)
  --help                        display help for command

consul-to-env - Save environment variables from consul to .env file

npx ilink-console-tools "consul-to-env" "--help"

Usage: ilink-console-tools consul-to-env [options]

Save environment variables from consul to .env file

Options:
  -f,--path [string]            path to file with .env for save or update variables (default: .env)
  -c,--clear [boolean]          clear .env file before save environment variables from consul (default: false)
  -h,--consul-host [string]     host of consul server (default: localhost)
  -p,--consul-port [string]     port of consul server (default: 8500)
  -k,--consul-key [string]      key in consul for retrieve environment variables
  -t,--consul-token [string]    token for work with consul server
  -d,--consul-dc [string]       dc of consul server
  -s,--consul-secure [boolean]  work in secure mode (default: false)
  --help                        display help for command