     .action (name, options) ->
       createNew name
 
+  # Alias for start shell scripts
+  # TODO: write separated realization
+  program
+    .command('server <env>')
+    .description('Start server with <environment>')
+    .action (name, options) ->
+      exec.spawn 'sh', ['-c', 'chmod +x ./bin/dev.sh && ./bin/dev.sh'], {stdio: 'inherit'}
+  
   ###
     CLI command: 
       otagai gen model test -f name:string,count:number

fs = require 'fs'
program = require 'commander'
ncp = require('ncp').ncp || ncp.limit = 16

exports.run = ->

      installDependencies name 

installDependencies = (app) ->
    terminal = exec.spawn('bash')

    terminal.stdout.on 'data', (data) ->
      console.log 'npm: ' + data
