Build or serve Redocly-style docs from a Swagger or OpenAPI spec
10K+
Built from the the official Redocly CLI Dockerfile.
Bundle example:
docker run -it -v "$(pwd)/documents:/data" broothie/redoc-cli bundle openapi.yml -o index.html
Watch example:
docker run -it -v "$(pwd)/documents:/data" -p 8080:8080 broothie/redoc-cli serve -w openapi.yml
Helps:
$ docker run -it broothie/redoc-cli --help
redoc-cli <command>
Commands:
redoc-cli serve <spec> start the server
redoc-cli bundle <spec> bundle spec into zero-dependency HTML-file
Options:
--help Show help [boolean]
--version Show version number [boolean]
-t, --template Path to handlebars page template, see https://git.io/vh8fP
for the example [string]
--templateOptions Additional options that you want pass to template. Use dot
notation, e.g. templateOptions.metaDescription
--options ReDoc options, use dot notation, e.g.
options.nativeScrollbars
$ docker run -it broothie/redoc-cli bundle --help
redoc-cli bundle <spec>
bundle spec into zero-dependency HTML-file
Positionals:
spec path or URL to your spec [required]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-t, --template Path to handlebars page template, see
https://git.io/vh8fP for the example [string]
--templateOptions Additional options that you want pass to template. Use
dot notation, e.g. templateOptions.metaDescription
--options ReDoc options, use dot notation, e.g.
options.nativeScrollbars
-o, --output Output file [string] [default: "redoc-static.html"]
--title Page Title [string]
--disableGoogleFont Disable Google Font [boolean] [default: false]
--cdn Do not include ReDoc source code into html page, use link
to CDN instead [boolean] [default: false]
$ docker run -it broothie/redoc-cli serve --help
redoc-cli serve <spec>
start the server
Positionals:
spec path or URL to your spec [required]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-t, --template Path to handlebars page template, see https://git.io/vh8fP
for the example [string]
--templateOptions Additional options that you want pass to template. Use dot
notation, e.g. templateOptions.metaDescription
--options ReDoc options, use dot notation, e.g.
options.nativeScrollbars
--title Page Title [string]
-s, --ssr Enable server-side rendering [boolean]
-p, --port [number] [default: 8080]
-w, --watch [boolean]
Refs:
Content type
Image
Digest
Size
64.3 MB
Last updated
over 6 years ago
docker pull broothie/redoc-cli