> ## Documentation Index
> Fetch the complete documentation index at: https://docs2.openclaw.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Docs

# `openclaw docs`

터미널에서 실시간 OpenClaw 문서 색인을 검색합니다. 이 명령은 OpenClaw의 Cloudflare 호스팅 문서 검색 API를 호출하고 결과를 터미널에 렌더링합니다.

## 사용법

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw docs                       # print docs entrypoint and example search
openclaw docs <query...>            # search the live docs index
```

인수:

| 인수           | 설명                                                |
| ------------ | ------------------------------------------------- |
| `[query...]` | 자유 형식 검색 쿼리입니다. 여러 단어로 된 쿼리는 공백으로 결합되어 하나로 전송됩니다. |

## 예시

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw docs browser existing-session
openclaw docs sandbox allowHostControl
openclaw docs gateway token secretref
```

쿼리가 없으면 `openclaw docs`는 검색을 실행하는 대신 문서 진입점 URL과 샘플 검색 명령을 출력합니다.

## 작동 방식

`openclaw docs`는 `https://docs.openclaw.ai/api/search`를 호출하고 JSON 결과를 렌더링합니다. 검색 호출은 고정된 30초 제한 시간을 사용합니다.

## 출력

리치(TTY) 터미널에서는 결과가 제목과 그 뒤의 글머리 기호 목록으로 렌더링됩니다. 각 글머리 기호는 페이지 제목, 연결된 문서 URL, 다음 줄의 짧은 스니펫을 표시합니다. 빈 결과는 "결과 없음."을 출력합니다.

리치가 아닌 출력(파이프, `--no-color`, 스크립트)에서는 동일한 데이터가 Markdown으로 렌더링됩니다.

```markdown theme={"theme":{"light":"min-light","dark":"min-dark"}}
# Docs search: <query>

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

## 종료 코드

| 코드  | 의미                                              |
| --- | ----------------------------------------------- |
| `0` | 검색에 성공했습니다(결과가 0개인 응답 포함).                      |
| `1` | 호스팅된 문서 검색 API 호출에 실패했습니다. stderr가 인라인으로 출력됩니다. |

## 관련 항목

* [CLI 참조](/ko/cli)
* [실시간 문서](https://docs.openclaw.ai)
