bin/captain.js
function create_user(options) {
  options = options || {};

   var success = options.success || function() {
     terminal.exit('\nUser created!\n\n');
   }, error = options.error || function(err) {
     terminal.abort('Failed to created user', err);
   };

  program.prompt('username: ', function(username) {
    program.password('password: ', '*', function(password) {
      program.password('confirm password: ', '*', function(password2) {
        if(password != password2) {
          terminal.abort('Password do not match, bailing out.');
        }
        program.prompt('email: ', function(email) {
          var body = {username: username, password: password, email: email}
            , db = require('captain-core/lib/db');

          db.users.create(body, function(err) {
            if(err) {
              error(err);
            } else {
              success();
            }
          });

        });
      });
    });
  });
}
function create_user(options) {
  options = options || {};

   var success = options.success || function() {
     terminal.exit('\nUser created!\n\n');
   }, error = options.error || function(err) {
     terminal.abort('Failed to created user', err);
   };

  program.prompt('username: ', function(username) {
    program.password('password: ', '*', function(password) {
      program.password('confirm password: ', '*', function(password2) {
        if(password != password2) {
          terminal.abort('Password do not match, bailing out.');
        }
        program.prompt('email: ', function(email) {
          var body = {username: username, password: password, email: email}
            , db = require('captain-core/lib/db');

          db.users.create(body, function(err) {
            if(err) {
              error(err);
            } else {
              success();
            }
          });

        });
      });
    });
  });
}
Usage: captain create_user

Creates a user