       if argv.verbose || argv.v then console.log sessionId
 
   upload: (argv) ->
-    upload = require('./upload')
     dir = argv._.shift() || process.cwd()
 
     # Legacy
-    compileIfLegacy = require('./compile').compileIfLegacy
     compileIfLegacy dir, (err) ->
       if err then console.error err
       else console.log chalk.green('compile legacy gadget, ok')

signin = require './signin'
manifest = require './manifest'
pkg = require '../package.json'
fs = require 'fs'

if argv.env then config.env argv.env


    versionArg = argv._.shift()
    unless versionArg then return commands.help(argv)

    version versionArg, (err, oldVersion, newVersion) ->
      if err then return logError err
      message = "version bumped from v#{oldVersion} to v#{newVersion}"
      console.log chalk.green message

  codio: (argv) ->
    codio (err) ->
      if err then return logError err
      console.log chalk.green '.codio created'
