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

Get Started Building CLI Tools with Node.js

40m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
43
people completed
Published a month ago
|
Updated a month 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!

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    This course provided me with access to brilliant ideas.

    Abdeljalil
    2 weeks ago

Course Content

40m • 15 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers
    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use
    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.