{
  "id": "tlrc",
  "name": "tlrc",
  "homepage": "https://github.com/tldr-pages/tlrc",
  "description": "Official tldr client written in Rust.",
  "executables": [
    "tlrc"
  ],
  "dotfiles": {
    "paths": [
      "[appData]/tlrc/config.toml"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Show a tldr page",
    "description": "Show a tldr page for a command, or search and update the page cache. Config, cache-clearing and language listing operations are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "src",
        "kind": "help",
        "url": "https://github.com/tldr-pages/tlrc/blob/main/src/args.rs",
        "revision": "main 2026-10",
        "evidence": "tldr [OPTIONS] [PAGE]...\n-u, --update          Update the cache.\n-a, --list-all        List all pages.\n-s, --search <KEYWORD>   Search for pages containing a keyword.\n--platform <PLATFORM>    Specify the platform to use (linux, osx, windows, etc.).\n-L, --language <LANGUAGE_CODE>   Specify the languages to use.\n-S, --short-options   Display short options wherever possible (e.g. '-s').\n-E, --long-options    Display long options wherever possible (e.g. '--long').\n-R, --raw             Print pages in raw Markdown instead of rendering them.\n"
      }
    ],
    "field": [
      {
        "id": "page",
        "label": "Page",
        "description": "Command name, e.g. tar or git commit.",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "src"
        ]
      },
      {
        "id": "platform",
        "label": "Platform",
        "type": "string",
        "option": [
          "--platform"
        ],
        "suggestions": [
          {
            "value": "linux",
            "label": "Linux"
          },
          {
            "value": "osx",
            "label": "macOS"
          },
          {
            "value": "windows",
            "label": "Windows"
          },
          {
            "value": "common",
            "label": "Common"
          }
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "language",
        "label": "Language code",
        "type": "string",
        "option": [
          "--language",
          "-L"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "short_options",
        "label": "Prefer short options",
        "type": "boolean",
        "option": [
          "--short-options",
          "-S"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "long_options",
        "label": "Prefer long options",
        "type": "boolean",
        "option": [
          "--long-options",
          "-E"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "raw",
        "label": "Raw Markdown",
        "type": "boolean",
        "option": [
          "--raw",
          "-R"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "search",
        "label": "Search keyword",
        "type": "string",
        "option": [
          "--search"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "update",
        "label": "Update the cache",
        "type": "boolean",
        "option": [
          "--update"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "list_all",
        "label": "List all pages",
        "type": "boolean",
        "option": [
          "--list-all",
          "-a"
        ],
        "sources": [
          "src"
        ]
      }
    ],
    "task": [
      {
        "id": "show",
        "label": "Show a page",
        "fields": [
          "page",
          "platform",
          "long_options"
        ],
        "required": [
          "page"
        ]
      },
      {
        "id": "search",
        "label": "Search pages",
        "fields": [
          "search"
        ],
        "required": [
          "search"
        ]
      },
      {
        "id": "update",
        "label": "Update the cache",
        "fields": [
          "update"
        ],
        "required": [
          "update"
        ],
        "set": {
          "update": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "page",
          "platform",
          "language",
          "search",
          "update",
          "list_all"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "short_options",
          "long_options",
          "raw"
        ]
      }
    ]
  }
}
