Last week, I wrote an article about building a Node.js CLI using yargs. I introduced it saying we use cli tools everyday to simplify common tasks i...
For further actions, you may consider blocking this person and/or reporting abuse
I absolutely love prompts! I recently switched from inquirer to prompts and it helped me reduce my dependency tree.
I love commander as well, It has 0 sub dependencies and since it is popular it has good resources available (there are a lot of articles available about commander).
Great article๐ฆ I haven't heard about a lot of them before.. I'll give them a try :D!
Thank you ๐Yesterday, I asked someone why using inquirer over prompts. Thank you for the dependency tree argument ๐
Thank you Saurabh, I'm glad you find Prompts useful!
Few dependencies are one of the main goals of Prompts - High five! ๐
inquirer and ora are also good
npmjs.com/package/inquirer
npmjs.com/package/ora
I used them too but I did a choice for the article ๐ข
Thank you for talking about them ๐
Might want to include some logging libraries next?
Segway: one thing I learned from other languages is your cli is just a client and you should keep the functionality in a separate libe that exposes bindings to this client or any future applications.
I'm not familiar with the subject but it seems interesting (I might need this on an issue on gitmoji-changelog, since I want to use it on a website). Do you have some articles about it? Maybe a library you had in mind?
I am such a fan of Signale and Prompts. I love how simple, yet effective they are.
Prompts is also a fan of you ๐
There is also ๐ React for interactive command-line apps, Ink :-)
Used it with pastel for several CLIs. Really nice :)
Nice write up! I didn't know about some of those packages.
If you are in the process of building NodeJS CLIs you definitely should check Oclif from Heroku, I wrote a post with an example some time ago here dev.to/fedekau/building-awesome-cl...
How about OCLIF? Have you thought of Oclif.io?
Didn't know this project, thank you for sharing ๐
The gluegun framework is also incredible.
infinitered.github.io/gluegun
Thanks for this article! I have to try everything ๐
Thank you ๐
Author of Prompts here! Thank you for featuring the prompts library โค๏ธ
Thank you for your awesome work ๐
I've used gluegun to create a CLI, it's quite nice and have a lot of functionality out of the box, worth checking it out!
Nice! I've used
command-line-args
andcommand-line-usage
in the past, but it looks likesyargs
can replace those two. Awesome!Commander.js seems to be another good option! github.com/tj/commander.js
Very nice article!
I am going to try all of this for sure, thank you for sharing.
Commander is missing from the list ๐
Sorry, this is an opinionated list. I use yargs for this purpose ๐
ASCIIFIED banners can be a great addition to your CLI utilities bringing about stunning looks.
Check out node-banner
Awesome!
Thanks a lot