CLI
The CLI is perfect for developers who prefer the command line or need to integrate quality checks into their development workflow. It returns the same lint results as the website.
Running the CLI
Run the CLI with npx — no install required, always picks up the latest version:
Code
Prefer a global install? You can still do that:
Code
The rest of this page uses npx rmoa. Drop the npx if you've installed globally.
Usage
Use the CLI to lint and get a score for your OpenAPI definition in a format that's easy to parse and integrate with your development workflow.
Getting an API key
The CLI calls the Rate My OpenAPI API, which requires an API key. Subscribe to the free plan (free forever) to register or log in — your API key is created automatically and is available in your dashboard.
New API keys required
On May 12, 2026, Rate My OpenAPI switched to a new registration system. API keys created before that date no longer work. Subscribing again issues a new key automatically.
Basic
Lint an OpenAPI definition in JSON or YAML format using the CLI's default configuration:
Code
Advanced
Override the minimum passing score (default 80 / 100), cap the allowed warnings and errors, and switch the output to JSON:
Code
Sample output
Code
Reports are public
All reports generated by Rate My OpenAPI are public (with an unguessable UUID URL), even when uploaded with an API key. Anyone with the URL to your report can access it.
Commands
Code
Source code and documentation at zuplo/rate-my-openapi.
