Installation

Get started with openapi-format in your project or globally.

NPX Usage (recommended)

Run openapi-format without a global install — works out of the box:

npx openapi-format your-openapi-file.yaml

Local Installation

Add openapi-format to your project's node_modules:

npm
npm install --save openapi-format
yarn
yarn add openapi-format

Then run with npx openapi-format your-openapi-file.yaml

Global Installation

npm install -g openapi-format