redoc/cli
2018-03-22 17:49:15 +02:00
..
.npmignore chore: fix .npmignore 2018-03-21 18:02:25 +02:00
index.ts fix(cli): don't wait for content loaded in bundled HTML 2018-03-22 17:49:15 +02:00
package.json chore(cli): CLI release 0.3.5 2018-03-20 13:22:59 +02:00
README.md docs: fix broken links in README 2018-03-21 17:52:45 +02:00
template.hbs feat(cli): add --template option 2018-03-20 11:00:45 +02:00
yarn.lock chore: add handlebars typings 2018-03-20 11:29:38 +02:00

redoc-cli

ReDoc's Command Line Interface

Installation

You can use redoc cli by installing redoc-cli globally or using npx.

Usage

Twe following commans are available:

  • redoc-cli serve [spec] - starts the server with spec 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.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

For more details run redoc-cli --help.