illustration for Get Started Building CLI Tools with Node.js
pro

Get Started Building CLI Tools with Node.js

42m closed-captioning
·
16 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.6
110
people completed
Published 2 years ago
|
Updated 2 years ago

As a developer, you have many tasks that you repeat on a day to day or project to project basis whether that’s setting up boilerplate, configuring projects just right, or… [insert your own joyless repetitive task here].

There's that saying about how if you do something more than twice you should automate it. You don’t have the time or energy to waste repeating actions when you can make robots do it for you, precisely the way you need it.

But there’s a cost to automating any given task. You have to write and maintain code that will do your tasks for you. That means it’s incredibly difficult to leverage the knowledge you already have to add efficiency in your workflow.

And as a web developer, you have the flexibility and ease of use of JavaScript through Node.js to command robots to take care of those pesky repeated tasks.

Node.js has a huge ecosystem for you to leverage as well as a large API surface to handle a plethora of use cases.

This makes Node.js versatile but if you’re just learning to script this can be overwhelming.

When building a CLI there are a few common features that you’ll implement for most projects:

  • Parse user input through the CLI
  • Implement functionality based on flags
  • Read/Write data to a file
  • Execute your script globally in your system

This course will introduce you to these core CLI features while using Node.js.

In his course, Kevin walks you through building a quizme CLI from scratch. The CLI lets a user add questions and answer questions through the CLI. Through building this project, you’ll learn how to implement those common CLI features.

node cli in action

By the end of the course, you will be understand what a productive developer workflow looks like when reading user input, displaying data in the CLI, persisting data in a file, and more!

Course Content

42m • 16 lessons

    You might also like these resources:

    illustration for Automate Daily Development Tasks with Bash
    Cameron Nokes • 46m • Course

    Humans were never meant to repeat joyless tasks in a precise manner, over and over and over. Learn to automate the joyless tasks out of your life.

    illustration for Script Kit Showcase for Optimizing Your Everyday Workflows

    A quick overview of the features of Script Kit to help you get oriented and writing scripts in no time.