docs ยท diff
git:20261030.a70479c to git:20261030.2e858e8
2 added, 4 removed. Audit A to A.
---
name: docs
description: Look up current library docs with the Context7 CLI.
---
- Run one of these, with `--library-version V` when the project pins a version:
-
- - `bunx ctx7 search "<question>" --library <name>`
- - `bunx ctx7 library <name>`, then `bunx ctx7 docs <id> "<topic>"`
+ 1. `bunx ctx7 library <name> "<question>"` lists the library IDs and their versions.
+ 2. `bunx ctx7 docs <id> "<question>"` returns the docs. When the project pins a version, add it to the ID, such as `/colinhacks/zod/v3.24.2`.
Answer with the library, its version, and the source URL that the output gives.