#!/usr/bin/env node

let cli = require('commander')

cli
  .command('init <name>', 'create blank Backrest template').alias('i')
  .command('start', 'start the server').alias('s')
  .command('stop', 'stop the server')
  .command('generator <controllerName>', 'generate a controller file').alias('g')
  .parse(process.argv)

@@ -14,18 +14,20 @@
 v node%0A%0A
-le
+cons
 t cli = 
@@ -51,12 +51,144 @@
 r')%0A
-%0Acli
+const fs = require('fs')%0A%0Alet %7B version %7D = JSON.parse(fs.readFileSync(%60$%7B__dirname%7D/../package.json%60, 'utf8'))%0A%0Acli%0A  .version(version)
 %0A  .

Add cli version option.