{
  "description": "Install or search rocks. Other luarocks commands are not covered.",
  "name": "luarocks",
  "subcommands": [
    {
      "name": "install",
      "description": "Install a rock by name (optionally a version), or from a rockspec URL or file.",
      "options": [
        {
          "names": [
            "--keep"
          ],
          "description": "Keep other versions"
        },
        {
          "names": [
            "--only-deps"
          ],
          "description": "Install only dependencies"
        }
      ],
      "args": [
        {
          "name": "rock",
          "isOptional": true
        },
        {
          "name": "version",
          "isOptional": true
        }
      ]
    },
    {
      "name": "search",
      "description": "Query the LuaRocks servers for a rock name.",
      "options": [
        {
          "names": [
            "--all"
          ],
          "description": "List all rocks"
        },
        {
          "names": [
            "--source"
          ],
          "description": "Source rocks only"
        },
        {
          "names": [
            "--binary"
          ],
          "description": "Binary rocks only"
        },
        {
          "names": [
            "--porcelain"
          ],
          "description": "Machine-friendly output"
        }
      ],
      "args": [
        {
          "name": "query",
          "isOptional": true
        }
      ]
    }
  ]
}
