{
  "id": "litecli",
  "name": "LiteCLI",
  "homepage": "https://litecli.com/config/",
  "description": "A SQLite command-line client with auto-completion and syntax highlighting.",
  "executables": [
    "litecli"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/litecli/config",
      "%LOCALAPPDATA%/dbcli/litecli/config"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Open SQLite database",
    "description": "Open a SQLite database in litecli, optionally running one statement and quitting. Config file, prompt and logging options are mostly left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/dbcli/litecli/blob/main/litecli/main.py",
        "revision": "2026-10-27",
        "evidence": "@click.option(\"-D\", \"--database\", \"dbname\", help=\"Database to use.\")\n@click.option(\"-t\", \"--table\", is_flag=True, help=\"Display batch output in table format.\")\n@click.option(\"--csv\", is_flag=True, help=\"Display batch output in CSV format.\")\n@click.option(\"-e\", \"--execute\", type=str, help=\"Execute command and quit.\")\n@click.option(\"--auto-vertical-output\", is_flag=True, help=\"Automatically switch to vertical output mode if the result is wider than the terminal width.\")\n@click.option(\"-l\", \"--logfile\", help=\"Log every query and its results to a file.\")\n@click.argument(\"database\", default=\"\", nargs=1)\n"
      }
    ],
    "field": [
      {
        "id": "database",
        "label": "Database file",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": false
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "execute",
        "label": "Run statement and quit",
        "type": "string",
        "option": [
          "--execute",
          "-e"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "table",
        "label": "Table output (batch)",
        "type": "boolean",
        "option": [
          "--table",
          "-t"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "csv",
        "label": "CSV output (batch)",
        "type": "boolean",
        "option": [
          "--csv"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "auto_vertical",
        "label": "Auto vertical output",
        "type": "boolean",
        "option": [
          "--auto-vertical-output"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "logfile",
        "label": "Query log file",
        "type": "path",
        "option": [
          "--logfile",
          "-l"
        ],
        "path": {
          "kind": "file",
          "role": "output",
          "must_exist": false
        },
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open database",
        "fields": [
          "database"
        ],
        "required": [
          "database"
        ]
      },
      {
        "id": "query",
        "label": "Run one query",
        "fields": [
          "database",
          "execute",
          "table"
        ],
        "required": [
          "database",
          "execute"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "database",
          "execute",
          "table",
          "csv"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "auto_vertical",
          "logfile"
        ]
      }
    ]
  }
}
