mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-04 22:33:43 +03:00
74ebba6e02
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.20.0 to 1.21.0. - [Release notes](https://github.com/PrismJS/prism/releases) - [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md) - [Commits](https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
.npmignore | ||
Dockerfile | ||
index.ts | ||
package-lock.json | ||
package.json | ||
README.md | ||
template.hbs |
redoc-cli
ReDoc's Command Line Interface
Installation
You can use redoc cli by installing redoc-cli
globally or using npx.
Usage
Two following commands are available:
redoc-cli serve [spec]
- starts the server withspec
rendered with ReDoc. Supports SSR mode (--ssr
) and can watch the spec (--watch
)redoc-cli bundle [spec]
- bundles spec and ReDoc into zero-dependency HTML file.
Some examples:
- Bundle with main color changed to
orange
:
$ redoc-cli bundle [spec] --options.theme.colors.primary.main=orange
- Serve with
nativeScrollbars
option set to true:
$ redoc-cli serve [spec] --options.nativeScrollbars
- Bundle using custom template (check default template for reference):
$ redoc-cli bundle [spec] -t custom.hbs
- Bundle using custom template and add custom
templateOptions
:
$ redoc-cli bundle [spec] -t custom.hbs --templateOptions.metaDescription "Page meta description"
For more details run redoc-cli --help
.