Install Redocly CLI
Build the HTML file
The Redocly CLIbuild-docs command builds Redoc into an HTML file.
To build an HTML file using Redocly CLI, enter the following command, replacing apis/openapi.yaml with your API definition file’s name and path: