             #   ]
 
           options.host = program.sphereHost if program.sphereHost
+          if program.sphereAuthHost
+            options.oauth_host = program.sphereAuthHost
+            options.rejectUnauthorized = false
+
+          options.host = program.sphereHost if program.sphereHost
 
           # if program.verbose
           #   options.logConfig.streams = [

            #     {level: 'warn', stream: process.stdout}
            #   ]

          options.host = program.sphereHost if program.sphereHost

          # if program.verbose
          #   options.logConfig.streams = [

      .option '-p, --projectKey <key>', 'your SPHERE.IO project-key'
      .option '-i, --clientId <id>', 'your OAuth client id for the SPHERE.IO API'
      .option '-s, --clientSecret <secret>', 'your OAuth client secret for the SPHERE.IO API'
      .option '--sphereHost <host>', 'SPHERE.IO API host to connect to'
      .option '--sphereAuthHost <host>', 'SPHERE.IO OAuth host to connect to'
      .option '--timeout [millis]', 'Set timeout for requests (default is 300000)', parseInt, 300000
      .option '--verbose', 'give more feedback during action'
      .option '--debug', 'give as many feedback as possible'
