               queryType: opts.queryType
               isQueryEncoded: opts.queryEncoded or false
           options.client.host = program.sphereHost if program.sphereHost
+          options.client.protocol = program.sphereProtocol if program.sphereProtocol
           if program.sphereAuthHost
             options.client.oauth_host = program.sphereAuthHost
             options.client.rejectUnauthorized = false
+          options.client.oauth_protocol = program.sphereAuthProtocol if program.sphereAuthProtocol
 
           exporter = new Exporter options
           if 'json' in opts

            #   ]

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

            #   ]

          options.client.host = program.sphereHost if program.sphereHost
          options.client.protocol = program.sphereProtocol if program.sphereProtocol
          if program.sphereAuthHost
            options.client.oauth_host = program.sphereAuthHost
            options.client.rejectUnauthorized = false
          options.client.oauth_protocol = program.sphereAuthProtocol if program.sphereAuthProtocol


          # if program.verbose
