npm / @redocly/cli
@redocly/cli
What changed in @redocly/cli 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
5 new APIs and options5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@redocly/cli 210 changes
New APIs and options 5
The generate-client command adds the client.telemetry option.
The generated TypeScript client adds the onSettled middleware hook.
The command supports the body-link pagination style, which follows the next page URL from a response field.
The tanstack-query generator creates infinite query options for operations using body-link pagination.
The nextLink option sets the response field containing the next page URL for body-link pagination.
Fixes and other changes 5
Fixed the command crashing on OpenAPI 3.2 descriptions with a deviceAuthorization OAuth flow and non-empty scopes.
Fixed the command crashing on OpenAPI 3.2 descriptions with a deviceAuthorization OAuth flow and non-empty scopes.
Fixed the command altering string values in runtime expressions containing a dot followed by a digit.
The generated Go client no longer sends duplicate query parameters when following a next page link.
Older browsers without AbortSignal.timeout() or AbortSignal.any() now correctly throw TimeoutError for timed-out requests instead of AbortError in Chrome 103–123.