A Command Line Interface (CLI) tool for serving, validating, and linting OpenAPI specifications.
Please visit the GitHub Releases page to download the latest version of the OpenAPI CLI.
To install the latest version of the OpenAPI CLI via the command line, you can use the following command:
go install github.com/mertssmnoglu/openapi-cli@latest
It will automatically download the latest version of the OpenAPI CLI and install it in your $GOPATH/bin
directory. Make sure that your $GOPATH/bin
directory is in your $PATH
.
>>> openapi-cli help
A Command Line Interface (CLI) tool for serving, validating, and linting OpenAPI specifications.
Usage:
openapi-cli [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
serve Serve the OpenAPI file
Flags:
-h, --help help for openapi-cli
Use "openapi-cli [command] --help" for more information about a command.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.