{
  "description": "Connect redis-cli to a server and optionally run one command, scan keys or sample latency. Passwords are left out of the form; use REDISCLI_AUTH or the interactive AUTH. TLS, cluster manager and bulk-transfer options are not covered.",
  "options": [
    {
      "names": [
        "-h"
      ],
      "description": "Host",
      "args": {
        "name": "host",
        "isOptional": false,
        "suggestions": [
          {
            "name": "127.0.0.1",
            "description": "127.0.0.1"
          }
        ]
      }
    },
    {
      "names": [
        "-p"
      ],
      "description": "Port",
      "args": {
        "name": "port",
        "isOptional": false
      }
    },
    {
      "names": [
        "-s"
      ],
      "description": "Unix socket",
      "args": {
        "name": "socket",
        "isOptional": false,
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-u"
      ],
      "description": "redis://user:password@host:port/dbnum. A password typed here lands in shell history.",
      "args": {
        "name": "uri",
        "description": "redis://user:password@host:port/dbnum. A password typed here lands in shell history.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--user"
      ],
      "description": "ACL username",
      "args": {
        "name": "user",
        "isOptional": false
      }
    },
    {
      "names": [
        "--askpass"
      ],
      "description": "Prompt for password"
    },
    {
      "names": [
        "-n"
      ],
      "description": "Database number",
      "args": {
        "name": "db",
        "isOptional": false
      }
    },
    {
      "names": [
        "-c"
      ],
      "description": "Cluster mode"
    },
    {
      "names": [
        "--raw"
      ],
      "description": "Raw output"
    },
    {
      "names": [
        "--csv"
      ],
      "description": "CSV output"
    },
    {
      "names": [
        "--json"
      ],
      "description": "JSON output"
    },
    {
      "names": [
        "--scan"
      ],
      "description": "List all keys (SCAN)"
    },
    {
      "names": [
        "--pattern"
      ],
      "description": "Used with --scan and --bigkeys.",
      "args": {
        "name": "pattern",
        "description": "Used with --scan and --bigkeys.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--bigkeys"
      ],
      "description": "Find big keys"
    },
    {
      "names": [
        "--stat"
      ],
      "description": "Rolling server stats"
    },
    {
      "names": [
        "--latency"
      ],
      "description": "Sample latency"
    }
  ],
  "args": [
    {
      "name": "command",
      "description": "Optional, e.g. GET key. Leave empty for an interactive session.",
      "isOptional": true,
      "isVariadic": true
    }
  ],
  "name": "redis-cli",
  "aliases": [
    "redis-server"
  ]
}
