As we discovered in Chapter 2, CockroachDB can be installed in many ways. A great way to create databases during development is to use the cockroach binary. In this chapter, we’ll explore the cockroach binary and the features it provides.
The Cockroach Binary
The cockroach binary uses the https://github.com/spf13/cobra library to manage commands and subcommands. Cobra is a popular Go package for creating rich CLIs (Command-Line Interfaces) used by many popular CLIs, including docker and kubectl. It will be ...