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

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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

  • 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.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • chalk

    🖍 Terminal string styling done right

  • chalk to style the output string.

  • 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