Build interactive command-line interfaces with Node.js easily
the complete solution for node.js command-line programs
$ npm init && npm install @expo/commander && node -e "const { Command } = require('@expo/commander'); new Command().name('myapp').version('1.0.0').parse()"$ const program = new Command(); program.command('deploy').description('deploy app').action(() => console.log('Deploying...'))$ program.option('-v, --verbose', 'verbose output').option('-p, --port <number>', 'port number').parse(process.argv)$ program.help() // or node myapp.js --help$ program.command('deploy <environment>').requiredOption('-k, --key <token>', 'API key').action((env, options) => {})