 
   context = new ReplyContext(defaultBot, bot, message)
 
-  if match = message.text.match(new RegExp(QUERY_REGEX))
+  if match = message.text.match(new RegExp(QUERY_REGEX)) && enableQueryCli
     message.match = match
     runCLI(context, message)
   else if match = message.text.match(new RegExp(FIND_REGEX))

          help += "\n"
        help += "\n"

      spaces = lookers.filter((l) -> l.customCommandSpaceId ).map((l) ->
        "<#{l.url}/spaces/#{l.customCommandSpaceId}|this space>"
      ).join(" or ")

if process.env.DEV == "true"
  # Allow communicating with Lookers running on localhost with self-signed certificates
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0

enableQueryCli = process.env.LOOKER_EXPERIMENTAL_QUERY_CLI == "true"

customCommands = {}

