© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
R. ReidPractical CockroachDBhttps://doi.org/10.1007/978-1-4842-8224-3_4

4. Managing CockroachDB from the Command Line

Rob Reid1  
(1)
Liss, Hampshire, UK
 

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 ...

Get Practical CockroachDB: Building Fault-Tolerant Distributed SQL Databases now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.