--- layout: "docs" page_title: "Environment" sidebar_current: "docs-commands-environment" description: |- Consul's behavior can be modified by certain environment variables. --- # Environment variables The Consul CLI will read the following environment variables to set behavioral defaults. These can be overridden in all cases using command-line arguments; see the [Consul Commands documentation](https://www.consul.io/docs/commands/index.html) for details. The following table describes these variables:
Variable name | Value |
---|---|
CONSUL_HTTP_ADDR | The HTTP API address as a host:port pair or path to Unix socket, for example 127.0.0.1:8500 or unix:///var/run/consul_http.sock |
CONSUL_HTTP_TOKEN | The API access token required when access control lists (ACLs) are enabled |
CONSUL_HTTP_AUTH | The HTTP Basic access credentials as a username:password pair |
CONSUL_HTTP_SSL | Boolean (default False) to specify HTTPS connections |
CONSUL_HTTP_SSL_VERIFY | Boolean (default True) to specify SSL certificate verification |
CONSUL_RPC_ADDR | The RPC interface address as a host:port pair or path to Unix socket, for example 127.0.0.1:8300 or unix:///var/run/consul_rpc.sock |