               queryType: opts.queryType
               isQueryEncoded: opts.queryEncoded or false
           options.client.host = program.sphereHost if program.sphereHost
+          if program.sphereAuthHost
+            options.client.oauth_host = program.sphereAuthHost
+            options.client.rejectUnauthorized = false
 
           exporter = new Exporter options
           if opts.json

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

          options.host = program.sphereHost if program.sphereHost

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

            #   ]

          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 = [
