{"action":"created","issue":{"url":"https://api.github.com/repos/CiscoCloud/consul-cli/issues/3","labels_url":"https://api.github.com/repos/CiscoCloud/consul-cli/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/CiscoCloud/consul-cli/issues/3/comments","events_url":"https://api.github.com/repos/CiscoCloud/consul-cli/issues/3/events","html_url":"https://github.com/CiscoCloud/consul-cli/issues/3","id":109239373,"number":3,"title":"CONSUL_HTTP_ADDR not recognized","user":{"login":"itheiss","id":2655169,"avatar_url":"https://avatars.githubusercontent.com/u/2655169?v=3","gravatar_id":"","url":"https://api.github.com/users/itheiss","html_url":"https://github.com/itheiss","followers_url":"https://api.github.com/users/itheiss/followers","following_url":"https://api.github.com/users/itheiss/following{/other_user}","gists_url":"https://api.github.com/users/itheiss/gists{/gist_id}","starred_url":"https://api.github.com/users/itheiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itheiss/subscriptions","organizations_url":"https://api.github.com/users/itheiss/orgs","repos_url":"https://api.github.com/users/itheiss/repos","events_url":"https://api.github.com/users/itheiss/events{/privacy}","received_events_url":"https://api.github.com/users/itheiss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T06:40:21Z","updated_at":"2015-10-01T17:56:22Z","closed_at":null,"body":"Hi!\r\n\r\nThe documentation stated the following:\r\n```\r\n--consul\r\nAddress of the Consul agent in the form hostname:port. The default is 127.0.0.1:8500. Can also be set with the environment variable CONSUL_HTTP_ADDR\r\n```\r\n\r\nI have exported the environment variable CONSUL_HTTP_ADDR but consul-cli is still using the default  127.0.0.1:8500:\r\n\r\n```\r\nexport CONSUL_HTTP_ADDR=consul.service.consul:8500\r\nconsul-cli status-leader\r\nGet http://127.0.0.1:8500/v1/status/leader: dial tcp 127.0.0.1:8500: connection refused\r\n```\r\n\r\nI have use ```consul-cli status-leader --consul=${CONSUL_HTTP_ADDR}``` to get things working. Is this what the documentation is saying?\r\n\r\nRegards\r\nIngo"},"comment":{"url":"https://api.github.com/repos/CiscoCloud/consul-cli/issues/comments/144800847","html_url":"https://github.com/CiscoCloud/consul-cli/issues/3#issuecomment-144800847","issue_url":"https://api.github.com/repos/CiscoCloud/consul-cli/issues/3","id":144800847,"user":{"login":"ChrisAubuchon","id":1409344,"avatar_url":"https://avatars.githubusercontent.com/u/1409344?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisAubuchon","html_url":"https://github.com/ChrisAubuchon","followers_url":"https://api.github.com/users/ChrisAubuchon/followers","following_url":"https://api.github.com/users/ChrisAubuchon/following{/other_user}","gists_url":"https://api.github.com/users/ChrisAubuchon/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisAubuchon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisAubuchon/subscriptions","organizations_url":"https://api.github.com/users/ChrisAubuchon/orgs","repos_url":"https://api.github.com/users/ChrisAubuchon/repos","events_url":"https://api.github.com/users/ChrisAubuchon/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisAubuchon/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T17:56:22Z","updated_at":"2015-10-01T17:56:22Z","body":"Nope. You shouldn't need `--consul=${CONSUL_HTTP_ADDR}`. Check out commit https://github.com/CiscoCloud/consul-cli/commit/1132e7285d9a365084b247e085c28463ba6c0d93. That should fix the issue."}}