---
title: "Discussion on \"How to build a CLI using NodeJS 💻\" | Hashnode"
description: "Discussion on \"How to build a CLI using NodeJS 💻\". How to build a CLI using NodeJS 💻\nCLI (Command Line Interface) is one of the most basic and powerful applications ever created by mankind. We all use CLI every day, whether it be npm, git, or any other CLI. Does your daily basis workflow have someth..."
url: "https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to build a CLI using NodeJS 💻](https://blog.kiradev.co/build-a-cli-using-nodejs?utm_source=hashnode&utm_medium=feed)

How to build a CLI using NodeJS 💻 CLI (Command Line Interface) is one of the most basic and powerful applications ever created by mankind. We all use CLI every day, whether it be npm, git, or any other CLI. Does your daily basis workflow have someth...

Jan 4, 2022 · 13 min read · blog.kiradev.co  
Read the article

-   [#cli](https://hashnode.com/tag/cli)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)

## Written by

[Kira](https://hashnode.com/@Kira272921)

@Kira272921 · India

  
[View profile](https://hashnode.com/@Kira272921)

High school student, developer, open-source enthusiast

A high-school student, developer, open-source enthusiast

## Responses 12

Markdown supported · ⌘↵ to post

[Tim Lavelle](https://hashnode.com/@timothylavelle)

[Jun 20, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/62b01a460924134a8048b90f)

Fantastic write-up, very clear and has been instrumental to helping me get a few CLI scripts under way.

Just wanted to pass over a heads up that with inquirer@9.0.0, this script breaks asking for ESM of inquirer, which they haven't implemented yet, but they have a PR waiting.

And if I can... where can we find a library of icons to use in our prompts, like you have sampled here?

Thanks again!

[Raman Sharma](https://hashnode.com/@raman-sharma)

[Mar 14, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/622eeab9df08b9b82341a658)

Great Article ! [Kira](https://hashnode.com/@Kira272921)

The way of explanation and writing is so simple and very much understandable.

Thank you for this tutorial! it will really help me to implement my new ideas!

Thank you! Keep it up!

[Kira](https://hashnode.com/@Kira272921)

[Mar 19, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/622eeab9df08b9b82341a658#reply-6235d9698e4fae3f767dd404)

Thanks a lot for the kind words [Raman Sharma](https://hashnode.com/@raman-sharma). Looking forward to see cool CLIs built by you 👀

[Tintinkung](https://hashnode.com/@tintinkung)

[Jan 13, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61e06e761f35f37864466460)

very cool blog! helps me alot to start writing npm package

[Daniel Waylonis](https://hashnode.com/@nekodan)

[Jan 7, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d7dbfe4b84101d2c3ed69d)

Good concept. Unfortunately, I immediately ran into some permissions and configuration issues trying to install the very first script. A troubleshooting section would be helpful right there since once you get it working, the rest of the article would likely work.

[Kira](https://hashnode.com/@Kira272921)

[Jan 7, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d7dbfe4b84101d2c3ed69d#reply-61d80a934b84101d2c3edccc)

Thanks a lot :D [Daniel Waylonis](https://hashnode.com/@nekodan). By the way, could you raise an issue on in the [github repo](https://github.com/Kira272921/tailwindcsscli), maybe I could get better understanding of the issue.

[Sycamore](https://hashnode.com/@tanoaksam)

[Jan 5, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d62945ab62bc12619f466b)

This is so cool [Kira](https://hashnode.com/@Kira272921)!! Thank you for sharing!

[Kira](https://hashnode.com/@Kira272921)

[Jan 6, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d62945ab62bc12619f466b#reply-61d659006be3e31286ae70a3)

Thanks a lot [Sam Sycamore](https://hashnode.com/@tanoaksam) :D

[Ankur Tyagi](https://hashnode.com/@TheAnkurTyagi)

[Jan 5, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d58377e2f29f0805e133de)

Excellent blog post [Kira](https://hashnode.com/@Kira272921) Thanks for sharing.

[Kira](https://hashnode.com/@Kira272921)

[Jan 5, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d58377e2f29f0805e133de#reply-61d586cde2f29f0805e1352e)

Thanks a lot [Ankur Tyagi](https://hashnode.com/@TheAnkurTyagi) :D

[Samet ÇELİKBIÇAK](https://hashnode.com/@sametcelikbicak)

[Jan 5, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d537c8220e98797766a33f)

It is a great content and detail explanations, thank you 👍

[Kira](https://hashnode.com/@Kira272921)

[Jan 5, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d537c8220e98797766a33f#reply-61d538aa46e56e75ab37523c)

I am glad that my article helped you out :D

[Traceton Timmerman](https://hashnode.com/@Traceton)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d480c4220e98797766961d)

Great article! This helped me realize I could have been doing something a better way in one of my projects! Specifically the way I was making my users setup my app.

[Kira](https://hashnode.com/@Kira272921)

[Jan 5, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d480c4220e98797766961d#reply-61d4fd5746e56e75ab374d51)

I am glad that my article helped you out :D

[Anurag](https://hashnode.com/@imanuraglol)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d46e02220e98797766934a)

Pretty great!! Looks like you spent a lot of time writing this :D

[Kira](https://hashnode.com/@Kira272921)

[Jan 5, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d46e02220e98797766934a#reply-61d4fd22220e987977669e9b)

It took me over 3hrs to write, but it was worth it 😄

[shashi pathipaka](https://hashnode.com/@Shashippk)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d45a82220e987977669098)

That's an nice article🔥

[Kira](https://hashnode.com/@Kira272921)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d45a82220e987977669098#reply-61d46222220e9879776691a3)

Thanks a lot, Shashi 😄

[Posandu Mapa](https://hashnode.com/@posandu)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d42d4646e56e75ab3739ab)

Whoah. Big article. Love it. Keep up the good work!

[Kira](https://hashnode.com/@Kira272921)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d42d4646e56e75ab3739ab#reply-61d42daf220e987977668995)

Thanks a lot :D

[Anish De](https://hashnode.com/@AnishDe12020)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d4277946e56e75ab3738eb)

That's a great article!!! Quite in-depth and shows the use of multiple libraries to make a real-world application. Keep it up 😄

[Kira](https://hashnode.com/@Kira272921)

[Jan 4, 2022](https://hashnode.com/posts/build-a-cli-using-nodejs/61d4267b220e987977668895/comment/61d4277946e56e75ab3738eb#reply-61d42939220e9879776688ee)

Thanks a lot :D
