© Robert Kowalski 2017

Robert Kowalski, The CLI Book, https://doi.org/10.1007/978-1-4842-3177-7_2

2. Writing a Database Administration Tool with Node.js

Robert Kowalski

(1)Hamburg, Germany

In this chapter, we will write a database administration tool named lounger and follow the principles that make a good CLI. The code for every section is available at https://​github.​com/​theclibook/​theclibook/​tree/​1.​0/​sourcecode, which you can access via a link at the end of each section. The main repository is at https://​github.​com/​theclibook/​theclibook. If you want to play with the code, don’t forget to run npm install in the folder for the section you want to test. The code also has a test suite that you can run with npm test.

We’ll start with the ...

Get The CLI Book: Writing Successful Command Line Interfaces with Node.js 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.