This is the official source for installing CockroachDB and the CockroachDB Cloud CLI with Homebrew.
$ brew install cockroachdb/tap/cockroach
$ brew install cockroachdb/tap/ccloud
Alternately, you can configure the tap and install the package separately:
$ brew tap cockroachdb/tap
$ brew install cockroach
$ brew install ccloud
See our complete installation instructions for alternative installation methods, including support for Linux and Windows.