# Redocly CLI

> Govern your APIs with one tool. Lint, bundle, test, document, and generate clients from the command line.

Source: https://talira.ai/catalog/redocly-cli-hwermj64
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / api / linting](https://talira.ai/categories/developer-tools/api/linting), [developer tools / api / documentation](https://talira.ai/categories/developer-tools/api/documentation), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^2]
- Plugins: yes[^4]
- Backed by: [Redocly](https://talira.ai/orgs/redocly.md)

Redocly CLI is an OpenAPI linter and API governance toolkit that checks OpenAPI 3.2, 3.1, 3.0, Swagger 2.0, AsyncAPI 3.x and 2.6, and Arazzo 1.x descriptions against an API style guide, following every `$ref` across files. Built-in rulesets (`recommended`, `minimal`, `spec`), configurable rules in `redocly.yaml` and custom plugins set the rules. It also bundles, splits and joins descriptions, builds a single-file HTML reference with Redoc CE, previews docs locally with a mock server, tests a live API against Arazzo workflows (`respect`), and, experimentally, generates typed clients and compares versions. It runs locally, in CI and in [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md); Redocly's paid platform is separate.

## Links

- Website: https://redocly.com/docs/cli/
- GitHub: https://github.com/Redocly/redocly-cli
- Docs: https://redocly.com/docs/cli/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/redocly-cli>[^1]

## Problems it solves

- enforce our API style guide on every OpenAPI change in CI
- catch invalid or inconsistent OpenAPI definitions before they reach the docs
- my OpenAPI spec is split across dozens of files and I need one bundled file for other tools
- split a huge OpenAPI YAML file into smaller files we can review
- build a static HTML API reference from an OpenAPI file that I can host anywhere
- preview API docs locally while editing the spec, with a mock server
- write a custom lint rule like 'operationId must be camelCase' without JSONPath
- remove internal endpoints from the public OpenAPI file during the build
- test that the live API actually returns what the OpenAPI description says
- lint AsyncAPI and Arazzo descriptions with the same tool as OpenAPI
- migrate our API lint rules off Spectral
- list the breaking changes between two versions of an API description
- output lint results in JUnit or Checkstyle format for our CI dashboard

## Features

- lints OpenAPI 3.2, 3.1, 3.0, Swagger 2.0, AsyncAPI 3.x and 2.6, and Arazzo 1.x
- built-in rulesets: recommended, minimal and spec
- configurable rules in redocly.yaml and custom plugins
- lints multi-file descriptions without bundling
- codeframe, stylish, JSON, Markdown, Checkstyle and JUnit output
- bundle, split and join descriptions
- decorators that change a description as it bundles
- build-docs writes a single HTML file with Redoc CE
- local docs preview with a mock server
- respect runs Arazzo API tests against a live API
- typed client generation (experimental)
- diff and drift checks (experimental)
- agent skills for AI coding assistants
- Docker image

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- backed by Redocly
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Stoplight](https://talira.ai/catalog/stoplight-r2j9hckj.md): Design, document, and build APIs faster

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://github.com/Redocly/redocly-cli/blob/main/LICENSE.md (checked 20 Nov 2026)
[^3]: https://redocly.com/docs/cli/ (checked 20 Nov 2026)
[^4]: https://github.com/Redocly/redocly-cli (checked 20 Nov 2026)
