Create cli utility easily


Create cli utility for node.js easily, including:

  • Full command/argument parser
  • Consistant arguments : second argument will alway be the second parametter of command callback
  • Auto help generator

Install the module with: npm install clifier

var Clifier = require('clifier');
var cli = new Clifier('name', 'version', 'description');
cli.addCommand('testcommand', 'description', function(arg1arg2){
        console.log(arg1, arg2);
    .addArgument('-a1, --arg1', 'description', 'defaultValue', function(value){
        return "filter value";
    .addArgument('-a2, --arg2', 'desscription');;

(Coming soon)

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

  • 05/03/2013 : 0.0.1

Copyright (c) 2013 Jeremy Barbe
Licensed under the WTFPL license.