{
  "id": "cline",
  "name": "Cline CLI",
  "homepage": "https://github.com/cline/cline",
  "description": "Run Cline in your terminal for interactive or headless sessions.",
  "executables": [
    "cline"
  ],
  "dotfiles": {
    "paths": [],
    "secret": [
      "~/.cline/data/settings/providers.json"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Run Cline",
    "description": "Run Cline with a prompt, or open its TUI. Subcommands (auth, config, mcp ...) and secrets such as API keys are 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/cline/cline/blob/main/docs/cli/cli-reference.mdx",
        "revision": "2026-10-27",
        "evidence": "Usage: cline [options] [command] [prompt]\n  -p, --plan                    Run in plan mode\n  --json                        Output messages as JSON instead of styled text\n  --auto-approve <boolean>      Set tool auto-approval for all tools (default: true)\n  -c, --cwd <path>              Working directory\n  --thinking <level>            Set reasoning effort: none|low|medium|high|xhigh.\n  -i, --tui                     Open the terminal user interface (TUI) for interactive sessions\n  -P, --provider <id>           Provider id (default: cline)\n  -m, --model <model-id>        Model to use for the session with the selected provider\n  -t, --timeout <seconds>       Optional timeout in seconds (default: 0 for no timeout)\n  --worktree                    Auto-create a detached git worktree under ~/.cline/worktrees/ and run the task there\n  -v, --verbose                 Show verbose output\n"
      }
    ],
    "field": [
      {
        "id": "prompt",
        "label": "Prompt",
        "description": "Task for Cline. Omit to start interactively.",
        "type": "string",
        "position": 0,
        "sources": [
          "help"
        ]
      },
      {
        "id": "plan",
        "label": "Plan mode",
        "type": "boolean",
        "option": [
          "--plan",
          "-p"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "cwd",
        "label": "Working directory",
        "type": "path",
        "option": [
          "--cwd",
          "-c"
        ],
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "provider",
        "label": "Provider",
        "type": "string",
        "option": [
          "--provider",
          "-P"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "model",
        "label": "Model",
        "type": "string",
        "option": [
          "--model",
          "-m"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "thinking",
        "label": "Reasoning effort",
        "type": "enum",
        "option": [
          "--thinking"
        ],
        "choices": [
          {
            "value": "none",
            "label": "none"
          },
          {
            "value": "low",
            "label": "low"
          },
          {
            "value": "medium",
            "label": "medium"
          },
          {
            "value": "high",
            "label": "high"
          },
          {
            "value": "xhigh",
            "label": "xhigh"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "auto_approve",
        "label": "Auto-approve tools",
        "description": "Default is true.",
        "type": "enum",
        "option": [
          "--auto-approve"
        ],
        "choices": [
          {
            "value": "true",
            "label": "Yes"
          },
          {
            "value": "false",
            "label": "No"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "json",
        "label": "JSON output",
        "type": "boolean",
        "option": [
          "--json"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "timeout",
        "label": "Timeout (seconds)",
        "type": "integer",
        "option": [
          "--timeout",
          "-t"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "tui",
        "label": "Open TUI",
        "type": "boolean",
        "option": [
          "--tui",
          "-i"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "worktree",
        "label": "Run in a git worktree",
        "type": "boolean",
        "option": [
          "--worktree"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "--verbose",
          "-v"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "run",
        "label": "Run a prompt",
        "fields": [
          "prompt",
          "cwd",
          "provider",
          "model",
          "auto_approve",
          "timeout"
        ],
        "required": [
          "prompt"
        ]
      },
      {
        "id": "plan",
        "label": "Plan only",
        "set": {
          "plan": [
            true
          ]
        },
        "lock": [
          "plan"
        ],
        "fields": [
          "prompt",
          "plan",
          "cwd",
          "model"
        ],
        "required": [
          "prompt"
        ]
      },
      {
        "id": "tui",
        "label": "Interactive TUI",
        "set": {
          "tui": [
            true
          ]
        },
        "lock": [
          "tui"
        ],
        "fields": [
          "tui",
          "cwd",
          "model"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "prompt",
          "plan",
          "cwd",
          "model",
          "tui"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "provider",
          "thinking",
          "auto_approve",
          "json",
          "timeout",
          "worktree",
          "verbose"
        ]
      }
    ]
  }
}
