Get "https://127.0.0.1:8200/v1/sys/internal/ui/mounts/kv/": http: server gave HTTP response to HTTPS client

What is the proper way of using vault from command line in production mode?

export VAULT_ADDR=http://127.0.0.1:8200
vault status

Per default the cli expects your Vault installation to be secured using tls. If not, you will have to set the VAULT_ADDR to use http.