From the course: Building Your First CLI App in Node

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create the user interface

Create the user interface

From the course: Building Your First CLI App in Node

Start my 1-month free trial

Create the user interface

- [Instructor] If you think about building a house, so far what we've been doing is building the foundations and setting in the pipes and things. Now we get to pretty things up a bit. In this video, we're going to build a user interface. Musette is a command line tool, but we can still make a little colorful. First, we're going to add one more dependency in our index.js file. We're going to set this const here as musette, the same name as our program, and we are going to require commander. What this is going to do is to help us manage the different commands we will have the user be able to choose from in the console. Typically, we would put much of this code in a run function, in our index.js, with a couple of other functions to support the app. With commander though, we're going to explicitly call dot command on the object we've defined as musette, which is going to be the commander of all of the commands that we define. Commander has created a really clean structure for us to work…

Contents