Redocly CLI commands
September 10, 2026 ยท View on GitHub
API authoring commands:
lintLint an API description.splitSplit an API description into a multi-file structure.introspect-mcpIntrospect an MCP server and record its capabilities in thex-mcpextension of an OpenAPI description [experimental feature].
Docs rendering commands:
build-docsBuild an API description into an HTML file.previewStart a local preview of a Redocly project with one of the product NPM packages.translateGenerate translation keys for a Redocly Realm, Reef, or Revel project.ejectEject and modify components from the core theme in a Redocly Realm, Reef, or Revel project.
CI and delivery commands:
API testing and drift commands:
respectExecute API tests described in an Arazzo description.generate-arazzoGenerate an Arazzo description from an OpenAPI description.proxyCapture live HTTP traffic through a reverse proxy into a HAR file [experimental feature].driftDetect drift between recorded HTTP traffic and an OpenAPI description [experimental feature].generate-specInfer an OpenAPI description from recorded HTTP traffic [experimental feature].
Quality report commands:
statsGather statistics for a document.scoreScore an API for integration simplicity and AI agent readiness [experimental feature].scorecard-classicEvaluate an API against the scorecard configuration of a Redocly project.
SDK generation commands:
generate-clientGenerate a typed TypeScript client from an OpenAPI description [experimental feature].eject-generatorCopy a built-in client generator into your repository as an editable file [experimental feature].
Redocly configuration commands:
check-configLint the Redocly configuration file.inspect-node-typesShow the node type the linter assigns to a location in an API description [experimental feature].
Reunite platform commands:
loginLog in to Reunite.logoutClear your stored credentials.pushPush an API description to Reunite.push-statusTrack an in-progress push operation to Reunite.
Shell setup commands:
completionGenerate autocomplete commands (includes install instructions).
Additional options
All commands support these parameters:
--version displays the current version of redocly.
--help displays the help for the command.
If you used a subcommand, it displays the help for that subcommand.
For example:
npx @redocly/cli@latest lint --help
Try these with any of the other commands.
Config file
Redocly CLI has one primary configuration file (redocly.yaml), also called the Redocly configuration file.
This file defines all of the configuration options available to you.
These options include the location of your files (for unbundling and bundling) and the linting rules (for validation against the OpenAPI Specification).
The Redocly configuration file must be in your root directory.
If Redocly CLI finds redocly.yaml in the root directory, it uses the options set in that file when it executes commands.
For most commands, you can also specify a configuration file with --config myconfig.yaml as part of the command.
For example:
npx @redocly/cli@latest lint --config redocly-official.yaml openapi.yaml
For more information, refer to the Redocly configuration file docs.