---
title: docs
description: API reference for the `turbo docs` command
product: turborepo
type: reference
summary: Reference for the `turbo docs` command that searches Turborepo documentation from the CLI.
---

# docs



Search the Turborepo documentation directly from the command line.

```bash title="Terminal"
turbo docs <query>
```

## Usage

The `docs` command searches the Turborepo documentation and returns matching pages.

```bash title="Terminal"
turbo docs "caching"
```

Example output:

```txt title="Terminal"
Found 5 results for 'caching':

1. Caching: https://v2-7-5.turborepo.dev/docs/core-concepts/caching

2. Remote Caching: https://v2-7-5.turborepo.dev/docs/core-concepts/remote-caching

3. Caching Tasks: https://v2-7-5.turborepo.dev/docs/crafting-your-repository/caching

4. Local Caching: https://v2-7-5.turborepo.dev/docs/core-concepts/local-caching

5. Cache Troubleshooting: https://v2-7-5.turborepo.dev/docs/troubleshooting/cache-issues
```

Results link to the versioned documentation site that matches your installed version of `turbo`.

## Options

### `--docs-version`

Override the documentation version to search. By default, `turbo docs` uses the version of `turbo` you have installed.

```bash title="Terminal"
turbo docs "task dependencies" --docs-version 2.8.0
```

## Minimum version

The minimum supported version is **2.7.5**.


---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)