Thank you @ArielLeslie
Also for further update:
I found some reference material, but i don’t know how to make it work:
// file: ./examples/pm
var program = require('commander');
program
.version('0.1.0')
.command('install [name]', 'install one or more packages')
.command('search [query]', 'search with optional query')
.command('list', 'list packages installed', {isDefault: true})
.parse(process.argv);
is there anyone that can help clarify this section ?