@donmccurdy/caporal

Framework for building command line applications with Node.js

npmmacoslinuxwindows
Try with needOr install directly
Source

About

A full-featured framework for building command line applications (cli) with node.js

Examples

create a new CLI tool with commands and options$ npx @donmccurdy/caporal --help
build a CLI app that takes arguments and flags$ caporal.createCommand('greet').argument('<name>').action(({name}) => console.log(`Hello ${name}`))
add multiple subcommands to a CLI application$ prog.command('deploy').command('build').command('test')
display help text and command documentation automatically$ myapp --help
parse command line arguments and validate user input$ caporal.argument('<file>').option('--format <type>', 'Choose format').action(...)