Download config from consul and store locally in a .env file
consul-to-env -u 'user:pass' -b 'https://consul.example.com/v1/kv/' -c 'config/app/' -o env
npx -p . consul-to-env -u 'user:pass' -b 'https://consul.example.com/v1/kv/' -c 'config/app/' -o env
or
node index.js -u 'user:pass' -b 'https://consul.example.com/v1/kv/' -c 'config/app/' -o env