mantl / consul-cli

Command line interface to Consul HTTP API
Apache License 2.0
251 stars 67 forks source link

allow the use of CONSUL_TOKEN environment variable #19

Closed st33v closed 8 years ago

st33v commented 8 years ago

I'd love it if I could use an environment variable to store the token instead of --token or stashing it in a file. This would make it easier to prevent the token from being seen in the output of scripts.

st33v commented 8 years ago

Oh, I see that someone already has a PR for this: https://github.com/CiscoCloud/consul-cli/pull/8

well, I second that emotion.

ChrisAubuchon commented 8 years ago

consul-cli allows the use of the Consul environment variables. In this case it is CONSUL_HTTP_TOKEN.