Building a CLI tool using node - An Ultimate Beginners guide 🚀

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. clipboardy

    Access the system clipboard (copy/paste)

    Now we work on the auto copy feature of the cli. For this purpose, we use a package named clipboardy. To install run

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.

    SurveyJS logo
  3. conf

    Simple config handling for your app or module

    Now, we implement history feature through which we can view the lastly created password through the -h or --history flag. For this purpose we use conf package. But first, let's create the flag feature. We use process.argvfor this purpose, process.argv is an inbuilt API used to get the arguments passed via command line like -h. We will slice it to remove the first two indexes of it to get relevant data only.

  4. chalk

    đź–Ť Terminal string styling done right

    chalk to style the output string.

  5. node-cli-template

    A nodejs template to quickly get you started with your cli tool.

    Congratulations, you learned how to create a CLI tool using Node.js 🎉🎉. The sky is the limit, go create something awesome. I also created an open-source template so you don't need to start everything from scratch. github.com/MeerHamza1421/node-cli-template

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to Build a Command Line Interface (CLI) Application with Node.JS👨‍🎓🤓.

    3 projects | dev.to | 13 Oct 2021
  • Managing Your Distributed Node.js Application Environment and Configuration

    2 projects | dev.to | 19 Oct 2022
  • Marak adds infinite loop test to popular colors.js

    3 projects | news.ycombinator.com | 8 Jan 2022
  • Setting Up Custom Environment Variables Using dotenv and Node-config

    2 projects | dev.to | 22 Jan 2021
  • Node.js' config Library Shouldn't Be Used in TypeScript

    1 project | dev.to | 22 May 2025

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?