© 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.