what is the environment variable for --http_addr flag?

I feel cockroach’s documents are very good.

but this time, I couldn’t find environment variables information easily.

Cockroach Commands page is saying “To find out which flags support environment variables, see the documentation for each command”. but cockroach start page doesn’t hold information about environment variables it uses.

I find COCKROACH_HOST and COCKROACH_PORT in Client Connection Parameters page, but don’t find variable for http binding address.

what is the environment variable for --http_addr flag? please let me know.

thank you.

Hi @kybin. Sorry our docs aren’t complete on this topic. Based on a quick look in the code, it looks like there isn’t an env variable equivalent for the --http-addr flag: https://github.com/cockroachdb/cockroach/blob/master/pkg/cli/cliflags/flags.go#L499. Feel free to open a feature request for that, however.

We have a docs issue to document env variables. I’ll make sure that happens before too long.

Best,
Jesse