JavaScript Command-line utilities

Open-source JavaScript projects categorized as Command-line utilities

Top 23 JavaScript Command-line utility Projects

  • GitHub repo Commander.js

    node.js command-line interfaces made easy

    Project mention: What is the best way to take user input in Nodejs? | | 2021-02-24

    I use something like (commander)[]

  • GitHub repo chalk

    🖍 Terminal string styling done right

    Project mention: My GraphQL Schema & Types Generation Workflow | | 2021-01-25

    We also use some chalk magic for colorful logging in console.

  • Scout

    Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo Inquirer.js

    A collection of common interactive command line user interfaces.

    Project mention: [OC] CLI app to search about animes! | | 2021-02-07

    try to use these two packages to give more functionality to the cli: commander and inquirer

  • GitHub repo shelljs

    :shell: Portable Unix shell commands for Node.js

    Project mention: Scale Salesforce Apps Using Microservices on Heroku | | 2021-01-29

    In the JavaScript file, we have SF CLI commands, Heroku CLI commands, as well as Linux commands to perform automation. This is an example of a robust use case for devs on what you can do with a node script. Julian, the developer who authored the script, used the Shelljs package (you can check out this powerful library here – note the weekly downloads!) because it provides the ability to write an automation that can run in both Windows and Unix platforms. It is an “implementation of Unix shell commands on top of the Node.js API” which you can review in more detail on the README here.

  • GitHub repo blessed

    A high-level terminal interface library for node.js.

    Project mention: Writing code to write code | | 2021-02-25

    I have found a trend forming in my day to day life. I like proficiency and challenges, as should anyone who strives to be/do better. I have been writing sometimes fun, sometimes plain projects that engage me. Something like writing Krist Console in an evening, using blessed and blessed-contrib to do so. I enjoy finding cool things other people have written and making fun things with them.

  • GitHub repo yargs

    yargs the modern, pirate-themed successor to optimist.

    Project mention: Build a CLI with Node.js | | 2021-01-18

    Although Node.js offers built-in functionality for handling command line arguments, we are going to use an npm package called yargs 🏴‍☠ which is specifically made for building CLI s. yargs will simplify our process of parsing arguments and help us organize command line flags.

  • GitHub repo ora

    Elegant terminal spinner

  • GitHub repo vorpal

    Node's framework for interactive CLIs

    Project mention: Use command from terminal? | | 2020-12-27

    Are you wanting to run your nodejs app, and then control it within the same terminal it is running in? If so, take a look at vorpal

  • GitHub repo node-config

    Node.js Application Configuration

    Project mention: Setting Up Custom Environment Variables Using dotenv and Node-config | | 2021-01-22

    If you need it, grab config here.

  • GitHub repo minimist

    parse argument options

    Project mention: Simple Tips on How to easily Deploy an Open-Source TypeScript Internal Link Client for Next.js | | 2021-02-11

    This open-source application has four dependencies: @nuxt/config, @chokidar, minimist and next.

  • GitHub repo progress

    Flexible ascii progress bar for nodejs

  • GitHub repo meow

    🐈 CLI app helper

  • GitHub repo cli-table

    Pretty unicode tables for the CLI with Node.JS

  • GitHub repo update-notifier

    Update notifications for your CLI app

  • GitHub repo DraftLog

    📜 Create updatable log lines into the terminal, and give life to your logs!

  • GitHub repo drawille

    Drawing in terminal with unicode braille characters

  • GitHub repo log-update

    Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.

  • GitHub repo boxen

    Create boxes in the terminal

    Project mention: Build a CLI with Node.js | | 2021-01-18

    Your CLI is complete now! One thing more that you can do is to decorate the output and errors with boxes and colors, we can do that using boxen and chalk.

  • GitHub repo cfonts

    Sexy fonts for the console

  • GitHub repo terminal-image

    Display images in the terminal

  • GitHub repo liftoff

    Launch your command line tool with ease.

  • GitHub repo configstore

    Easily load and persist config without having to think about where and how

  • GitHub repo log-symbols

    Colored symbols for various log levels

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-02-25.


What are some of the best open-source Command-line utility projects in JavaScript? This list will help you:

Project Stars
1 Commander.js 19,825
2 chalk 15,952
3 Inquirer.js 13,901
4 shelljs 11,691
5 blessed 9,742
6 yargs 8,537
7 ora 6,589
8 vorpal 5,382
9 node-config 5,105
10 minimist 4,565
11 progress 2,557
12 meow 2,530
13 cli-table 2,045
14 update-notifier 1,518
15 DraftLog 1,114
16 drawille 912
17 log-update 842
18 boxen 838
19 cfonts 786
20 terminal-image 775
21 liftoff 759
22 configstore 688
23 log-symbols 563