{
  "id": "intelli-shell",
  "name": "IntelliShell",
  "homepage": "https://github.com/lasantosr/intelli-shell",
  "description": "A smart command template and snippet manager for shells.",
  "executables": [
    "intelli-shell"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/intelli-shell/config.toml",
      "[appData]/org.IntelliShell.Intelli-Shell/config.toml",
      "%APPDATA%/IntelliShell/Intelli-Shell/config/config.toml"
    ],
    "exclude": [],
    "secret": [],
    "secret_paths": [
      {
        "file": [
          "[configHome]/intelli-shell/config.toml",
          "[appData]/org.IntelliShell.Intelli-Shell/config.toml",
          "%APPDATA%/IntelliShell/Intelli-Shell/config/config.toml"
        ],
        "match": {
          "key_path": [
            "gist.token"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": [
          "[configHome]/intelli-shell/config.toml",
          "[appData]/org.IntelliShell.Intelli-Shell/config.toml",
          "%APPDATA%/IntelliShell/Intelli-Shell/config/config.toml"
        ],
        "match": {
          "key_path": [
            "data_dir"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "IntelliShell",
    "description": "Search the command library and bookmark new commands. Import, export, replace, fix, config and logs are outside this form.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "search"
        ],
        "label": "Search commands",
        "description": "Print matching stored commands, or open the interactive picker.",
        "source": [
          {
            "id": "docs",
            "kind": "manual",
            "url": "https://github.com/lasantosr/intelli-shell/blob/main/docs/src/reference/search.md",
            "revision": "2026-10-27",
            "evidence": "intelli-shell search [OPTIONS] [QUERY]\n- `-m, --mode <MODE>`\n  - `auto`: Uses an internal algorithm to best match common search patterns\n  - `fuzzy`: Finds commands that are similar to the query using special syntax\n  - `regex`: Treats the query as a regular expression for complex pattern matching\n  - `exact`: Returns only commands that precisely match the entire query\n  - `relaxed`: Broadens the search to find the maximum number of potentially relevant commands\n- `-u, --user-only`  Excludes commands imported from `tldr` pages from the search results.\n- `--ai`  Uses AI to generate commands based on the `QUERY` prompt\n- `-i, --interactive`  Opens the interactive TUI to search and select a command.\n"
          }
        ],
        "field": [
          {
            "id": "query",
            "label": "Query",
            "type": "string",
            "position": 0,
            "sources": [
              "docs"
            ]
          },
          {
            "id": "mode",
            "label": "Search mode",
            "type": "enum",
            "choices": [
              {
                "value": "auto",
                "label": "Auto"
              },
              {
                "value": "fuzzy",
                "label": "Fuzzy"
              },
              {
                "value": "regex",
                "label": "Regex"
              },
              {
                "value": "exact",
                "label": "Exact"
              },
              {
                "value": "relaxed",
                "label": "Relaxed"
              }
            ],
            "option": [
              "--mode",
              "-m"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "user_only",
            "label": "Exclude tldr commands",
            "type": "boolean",
            "option": [
              "--user-only",
              "-u"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "interactive",
            "label": "Interactive picker",
            "type": "boolean",
            "option": [
              "--interactive",
              "-i"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "ai",
            "label": "Generate with AI",
            "description": "Treat the query as a natural-language prompt.",
            "type": "boolean",
            "option": [
              "--ai"
            ],
            "sources": [
              "docs"
            ]
          }
        ],
        "task": [
          {
            "id": "find",
            "label": "Find commands",
            "fields": [
              "query",
              "mode",
              "user_only"
            ],
            "required": [
              "query"
            ]
          },
          {
            "id": "pick",
            "label": "Pick interactively",
            "fields": [
              "query",
              "interactive"
            ],
            "required": [],
            "set": {
              "interactive": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "query",
              "mode",
              "user_only",
              "interactive",
              "ai"
            ]
          }
        ]
      },
      {
        "path": [
          "new"
        ],
        "label": "Bookmark a command",
        "description": "Store a new command in the library without opening the TUI.",
        "source": [
          {
            "id": "docs",
            "kind": "manual",
            "url": "https://github.com/lasantosr/intelli-shell/blob/main/docs/src/reference/new.md",
            "revision": "2026-10-27",
            "evidence": "intelli-shell new [OPTIONS] [COMMAND_STRING]\n- `-a, --alias <ALIAS>`  Sets an alias (a short, memorable name) for the command.\n- `-d, --description <DESCRIPTION>`  Provides a detailed description for the command.\n- `--ai`  Uses AI to generate a command and its description from the `COMMAND_STRING` prompt.\n- `-i, --interactive`  Opens the interactive TUI to bookmark the command\n"
          }
        ],
        "field": [
          {
            "id": "command_string",
            "label": "Command",
            "type": "string",
            "position": 0,
            "sources": [
              "docs"
            ]
          },
          {
            "id": "alias",
            "label": "Alias",
            "type": "string",
            "option": [
              "--alias",
              "-a"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "description",
            "label": "Description",
            "description": "May include #tags.",
            "type": "string",
            "option": [
              "--description",
              "-d"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "interactive",
            "label": "Review in interactive picker",
            "type": "boolean",
            "option": [
              "--interactive",
              "-i"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "ai",
            "label": "Generate with AI",
            "type": "boolean",
            "option": [
              "--ai"
            ],
            "sources": [
              "docs"
            ]
          }
        ],
        "task": [
          {
            "id": "bookmark",
            "label": "Bookmark a command",
            "fields": [
              "command_string",
              "alias",
              "description"
            ],
            "required": [
              "command_string"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "command_string",
              "alias",
              "description",
              "interactive",
              "ai"
            ]
          }
        ]
      }
    ]
  }
}
