package
A command line tool for the openapi enforcer libraries
npm install openapi-enforcer-cliGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A CLI tool for facilitating the use of the NPM openapi-enforcer package.
npm install -g openapi-enforcer-cliTo use the command line tool use the command openapi-enforcer from your terminal. This will show the help.
$ openapi-enforcer
Usage: index [options] [command]
Options:
-h, --help output usage information
Commands:
build <oas-doc> <out-path> Dereference and build a single OpenAPI file from multiple sources
create-api [options] <oas-doc> [out-dir] Create a project
docs [options] <oas-doc> Produce documentation with Redoc UI while editing an OpenAPI document
help Display help
validate <oas-doc> Validate an Open API Specification document
version Get the installed version numberTo get help about a specific command, specify the command followed by the --help flag.
$ openapi-enforcer create-api --help
Usage: create-api [options] <oas-doc> [out-dir]
Create a project
Options:
-c, --controller <key> The x-controller property name. Defaults to x-controller.
-d, --dependencies <types> The optional dependencies to initialize with. Use comma separated values to specify more than one. Valid values include: axios, mongodb, mysql, oracledb, postgres, request
Estimated unpacked size across 65 packages.
8.9 MB+
Includes dependencies.
^1.12.4
1.23.0
^7.1.4
9.0.9