> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/cli/commands/docs.md).

# docs

Ask Celigo's product documentation a question from the terminal. `docs search` sends the question to the platform's GPTverse retrieval endpoint — the same service behind the Platform MCP server's knowledge-base search — and prints an AI-generated answer with the source articles it drew from (help center, community, guides), each cited with a URL and relevance score.

This is documentation search, not your account: your own resources live under [`account search`](https://developer.celigo.com/cli/commands/account.md#celigo-account-search) and the resource groups. It is also **not** the account's knowledge bases — since celigo-cli 2026.11.2, the [`knowledge-bases`](https://developer.celigo.com/cli/commands/knowledge-bases.md) command group manages those.

A pure query — nothing is created or modified — so it is allowed in `read` mode even though the request is a `POST`.

**Note**: the backing endpoint (`POST /v1/gptverse/knowledge-base/answer`) is part of the platform's GPTverse service and is not published in the [API reference](https://developer.celigo.com/api/api-reference).

```
celigo docs search <question...> [flags]
```

Supports all [global flags](https://developer.celigo.com/cli/getting-started/global-flags.md).

***

## Subcommands

| Subcommand          | Purpose                                                |
| ------------------- | ------------------------------------------------------ |
| `search <query...>` | Ask a question; prints `{answer, sources, thread_id}`. |

***

## `celigo docs search <query...>`

Ask the product documentation a question. Bare words are joined into one question, so quotes are optional. The response carries the answer text, the cited source articles, and a `thread_id` — pass it back via `--thread` to ask a follow-up in the same conversation.

**Signature**

```bash
celigo docs search <query...> [--max-sources <n>] [--score-threshold <n>] [--thread <id>] [--no-sources]
```

**Arguments**

| Argument     | Type              | Required | Description                                                    |
| ------------ | ----------------- | -------- | -------------------------------------------------------------- |
| `<query...>` | string (variadic) | Yes      | The question to ask. Words are joined, so quotes are optional. |

**Flags**

| Flag                    | Type    | Default              | Description                                                                                                                                                                                                                  |
| ----------------------- | ------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--max-sources <n>`     | integer | `5` (API default)    | Maximum source articles to include (1–20). Since celigo-cli 2026.10.1, a value that is not a whole number in that range is refused before the request: `--max-sources must be a whole number from 1 to 20 (got 'ten').`      |
| `--score-threshold <n>` | number  | `0.75` (API default) | Minimum relevance score for source articles (0.2–1.0). Since celigo-cli 2026.10.1, a value that is not a number in that range is refused before the request: `--score-threshold must be a number from 0.2 to 1 (got '1.5').` |
| `--thread <id>`         | string  | —                    | `thread_id` from a previous answer, to follow up in context. Since celigo-cli 2026.11.2, a blank value (an unset shell variable) is refused instead of starting a new thread.                                                |
| `--no-sources`          | boolean | `false`              | Print the answer alone — skip the source-article list.                                                                                                                                                                       |

**Example**

```bash
# Quotes optional — bare words are joined
celigo docs search how do I configure a delta export

# Just the answer text
celigo docs search "What does the flow error 'connection offline' mean?" --jq .answer

# A follow-up in the same conversation
celigo docs search --thread th_01J9... "And how do I resolve it from the CLI?"
```

**Corresponds to**: `POST /v1/gptverse/knowledge-base/answer` (not published in the API reference).

***

## Gotchas

* **Answers are LLM-generated and can take a while.** The CLI gives this request a longer budget than a normal API call — expect seconds, not milliseconds. The sources are the ground truth; follow the cited URLs for anything you plan to rely on.
* **Follow-ups need the `thread_id`.** Each response includes one. Pass it back with `--thread` to keep the conversation's context; without it every question starts fresh.
* **This is not your account's data.** `docs search` reads Celigo's public product documentation. For resources on your account use [`account search`](https://developer.celigo.com/cli/commands/account.md#celigo-account-search) or the resource groups; for exact request/response shapes use the [API reference](https://developer.celigo.com/api/api-reference).
* **Not the account's knowledge bases.** The knowledge bases that AI agents and guardrails retrieve from are an account resource with a command group of its own, [`knowledge-bases`](https://developer.celigo.com/cli/commands/knowledge-bases.md) (celigo-cli 2026.11.2).
* **Allowed in read mode.** The request is a `POST`, but it only reads — it is on the CLI's read-only-POST allowlist, so a `read`-mode profile can use it freely.

## Related

* [account](https://developer.celigo.com/cli/commands/account.md) — `account search` finds resources on your own account.
* [feedback](https://developer.celigo.com/cli/commands/feedback.md) — when the docs don't answer it, tell the team what you were looking for.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/cli/commands/docs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
