{
  "id": "lnav",
  "name": "lnav",
  "homepage": "https://lnav.org",
  "description": "The Logfile Navigator.",
  "executables": [
    "lnav"
  ],
  "dotfiles": {
    "paths": [
      "~/.lnav/config.json",
      "~/.lnav/configs/",
      "~/.lnav/formats/",
      "~/.config/lnav/config.json",
      "~/.config/lnav/configs/",
      "~/.config/lnav/formats/"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "View log files",
    "description": "Open log files or directories in lnav, or run commands headless. Management mode, format install and debug options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": true
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/lnav/lnav.1.en.html",
        "revision": "2026-10-27",
        "evidence": "-r\nRecursively load files from the given directories.\n-R\nLoad older rotated log files as well.\n-c cmd\nExecute a command after the files have been loaded.\n-f path\nExecute the commands in the given file.\n-t\nPrepend timestamps to the lines of data being read in on the standard input.\n-n\nRun without the curses UI. (headless mode)\n-N\nDo not open the default syslog file if no files are given.\n-q\nQuiet mode. Do not print the log messages after executing all of the commands.\nlogfile1\nThe log files or directories to view. If a directory is given, all of the files in the directory will be loaded.\n"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Log files or directories",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "recursive",
        "label": "Load directories recursively",
        "type": "boolean",
        "option": [
          "-r"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "rotated",
        "label": "Include rotated logs",
        "type": "boolean",
        "option": [
          "-R"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "no_default",
        "label": "Skip default syslog",
        "type": "boolean",
        "option": [
          "-N"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "command",
        "label": "Command after load",
        "type": "string",
        "option": [
          "-c"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "script",
        "label": "Command file",
        "type": "path",
        "option": [
          "-f"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "headless",
        "label": "Headless (no UI)",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "view",
        "label": "View logs",
        "fields": [
          "files",
          "recursive",
          "rotated"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "headless",
        "label": "Run command headless",
        "fields": [
          "files",
          "command",
          "headless",
          "quiet"
        ],
        "required": [
          "files",
          "command"
        ],
        "set": {
          "headless": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "recursive",
          "rotated",
          "no_default"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "command",
          "script",
          "headless",
          "quiet"
        ]
      }
    ]
  }
}
