惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
MyScale Blog
MyScale Blog
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky
Recent Announcements
Recent Announcements
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs(cli): expand docs and tasks-flow CLI references with...
vincentkoc · 2026-05-10 · via Recent Commits to openclaw:main

@@ -2,31 +2,72 @@

22

summary: "CLI reference for `openclaw docs` (search the live docs index)"

33

read_when:

44

- You want to search the live OpenClaw docs from the terminal

5+

- You need to know which helper binaries the docs CLI shells out to

56

title: "Docs"

67

---

7889

# `openclaw docs`

91010-

Search the live docs index.

11+

Search the live OpenClaw docs index from the terminal. The command shells out to the public Mintlify-hosted docs MCP search endpoint at `https://docs.openclaw.ai/mcp.SearchOpenClaw` and renders the results in your terminal.

12+13+

## Usage

14+15+

```bash

16+

openclaw docs # print docs entrypoint and example search

17+

openclaw docs <query...> # search the live docs index

18+

```

11191220

Arguments:

132114-

- `[query...]`: search terms to send to the live docs index

22+

| Argument | Description |

23+

| ------------ | ---------------------------------------------------------------------------------- |

24+

| `[query...]` | Free-form search query. Multi-word queries are joined with spaces and sent as one. |

152516-

Examples:

26+

## Examples

17271828

```bash

19-

openclaw docs

2029

openclaw docs browser existing-session

2130

openclaw docs sandbox allowHostControl

2231

openclaw docs gateway token secretref

2332

```

243325-

Notes:

34+

With no query, `openclaw docs` prints the docs entrypoint URL plus a sample search command instead of running a search.

35+36+

## How it works

37+38+

`openclaw docs` invokes the `mcporter` CLI to call the docs search MCP tool, then parses the `Title: / Link: / Content:` blocks from the tool output into a list of results.

39+40+

To resolve `mcporter`, OpenClaw checks in order:

41+42+

1. `mcporter` on `PATH` (used directly if present).

43+

2. `pnpm dlx mcporter ...` if `pnpm` is installed.

44+

3. `npx -y mcporter ...` if `npx` is installed.

45+46+

If none are available, the command fails with a hint to install `pnpm` (`npm install -g pnpm`).

47+48+

The search call uses a fixed 30 second timeout. Result snippets are truncated to ~220 characters per entry.

49+50+

## Output

51+52+

In a rich (TTY) terminal, results render as a heading followed by a bullet list. Each bullet shows the page title, the linked docs URL, and a short snippet on the next line. Empty results print "No results.".

53+54+

In non-rich output (piped, `--no-color`, scripts), the same data renders as Markdown:

55+56+

```markdown

57+

# Docs search: <query>

58+59+

- [Title](https://docs.openclaw.ai/...) - snippet

60+

- [Title](https://docs.openclaw.ai/...) - snippet

61+

```

62+63+

## Exit codes

266427-

- With no query, `openclaw docs` opens the live docs search entrypoint.

28-

- Multi-word queries are passed through as one search request.

65+

| Code | Meaning |

66+

| ---- | --------------------------------------------------- |

67+

| `0` | Search succeeded (including zero-result responses). |

68+

| `1` | The MCP tool call failed; stderr is printed inline. |

29693070

## Related

31713272

- [CLI reference](/cli)

73+

- [Live docs](https://docs.openclaw.ai)