@abios/abios-redoc-cli

0.15.0 • Public • Published

abios-redoc-cli

Abios ReDoc's Command Line Interface

Installation

You can use abios' fork of redoc cli by installing @abios/abios-redoc-cli globally.
Run: yarn global add @abios/abios-redoc-cli.

Usage

Two following commands are available:

  • abios-redoc-cli serve [spec] - starts the server with spec rendered with Abios ReDoc. Supports SSR mode (--ssr) and can watch the spec (--watch)
  • abios-redoc-cli bundle [spec] - bundles spec and ReDoc into zero-dependency HTML file.

Some examples:

  • Bundle with main color changed to orange:
    $ abios-redoc-cli bundle [spec] --options.theme.colors.primary.main=orange
  • Serve with nativeScrollbars option set to true:
    $ abios-redoc-cli serve [spec] --options.nativeScrollbars
  • Bundle using custom template (check default template for reference):
    $ abios-redoc-cli bundle [spec] -t custom.hbs
  • Bundle using custom template and add custom templateOptions:
    $ abios-redoc-cli bundle [spec] -t custom.hbs --templateOptions.metaDescription "Page meta description"

For more details run abios-redoc-cli --help.

See the original Redoc-CLI repo here.

Readme

Keywords

none

Package Sidebar

Install

npm i @abios/abios-redoc-cli

Weekly Downloads

82

Version

0.15.0

License

MIT

Unpacked Size

14.2 kB

Total Files

5

Last publish

Collaborators

  • antjan