> This page is for CLI 参考.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For task-scoped instructions for coding agents working in a Fern project, run `fern instructions` (or `npx fern-api@latest instructions` if the Fern CLI isn't installed or doesn't recognize `instructions`), or see https://buildwithfern.com/learn/home/fern-instructions.md.

## 5.223.1

**`(fix):`** C/C++ library docs keep existing URLs stable when a symbol with a colliding name is added.
The plain URL goes to the name it represents most closely (`foo_bar` over `foo__bar`, public
names over `_`-prefixed ones); every other colliding symbol, header, or group gets a short
suffix derived from its own name instead of `-2`, `-3`, so adding or removing a symbol never
moves another page. One-time change on upgrade: pages that ended in `-2`, `-3` move to the
new suffix, and in a few existing collisions the plain URL changes owner (e.g. `sa_b` now
takes `sab` from `s_a_b`).

**`(fix):`** C/C++ library docs render typedefs the way they were declared: `typedef uint8_t SeverityLevel;`
and `typedef enum doca_error doca_error_t;` stay C typedefs even in libraries that also contain
C++ symbols, and untagged structs show `typedef struct { ... } AnonymousPacket;`. Header pages
list the enumerators of unnamed enums. Requires the matching C/C++ parser update.

## 5.223.0

**`(feat):`** Add `fern sdk add-tool <name>` and `fern sdk add-hook` to scaffold MCP custom-tool and hook modules
into `fern/custom/` and register them under the MCP target's `generation` block in `sdk-config.yml`.
The scaffolded modules import the authoring contract from the new `@fern-api/mcp-tooling` package
(so they type-check before `fern generate` runs) and call `context.fetch`.