This is the official source for installing CockroachDB, CockroachDB SQL CLI, and the CockroachDB Cloud CLI with Homebrew.
$ brew install cockroachdb/tap/cockroach
$ brew install cockroachdb/tap/cockroach@22.2 # for older versions
$ brew install cockroachdb/tap/cockroach-sql
$ 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 cockroach-sql
$ brew install ccloud
See our complete installation instructions for alternative installation methods, including support for Linux and Windows.