             else
               process.exit(0)
 
+        # VERSION
+        when '--version', '-v'
+          pkg = require(path.join(__dirname,'..','package.json'))
+          console.log "#{pkg.name} #{pkg.version}"
+          process.exit 0
+
         # HELP OR ERROR
         else
           console.log "USE: intellinote login|logout|(GET|POST|PUT|PATCH|DELETE|HEAD <URL> [<BODY>])"


  ping:(callback)=>
    params = {
      url:@abs "/v2.0/ping"
      headers: {
        Authorization: "Bearer #{@config.oauth.access}"
      }

          delete @config.oauth.refreshed
          delete @config.oauth.refresh
          @ensure_active_access_token (err,success)=>
            if not err? and success
              process.exit(0)
            else
              console.error "ERROR: Unable to log in.\n"
              process.exit(2)

        # LOGOUT
