From 4b2b16438686bfb0a7c722a1182137185e02da28 Mon Sep 17 00:00:00 2001 From: lcampos Date: Tue, 23 Jul 2024 04:33:10 -0700 Subject: [PATCH] Update readme for public cli (#251) --- packages/cli/README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/packages/cli/README.md b/packages/cli/README.md index 9d516dd..056d5bf 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -1,3 +1,41 @@ # Rate My OpenAPI CLI -This repo contains the public cli +

+ + +

Rate My Open API

+ +

+ +This CLI project aims to give a rating to OpenAPI definitions so you can understand +how helpful they are for the OpenAPI lifecycle. Having a low score might mean +that your journey of governing your API is going to be harder than it should. + +# RMOA CLI + +``` +rmoa + +Commands: +rmoa lint + +Uploads an Open API file & gets it's Rate My Open API results + +Options: + --version Show version number [boolean] + --help Show help [boolean] + --api-key The API Key from Zuplo [string] [required] + --filename The OpenApi file name to process [string] [required] + --dir The directory containing your Open API file[string] [default: "."] + --output default, json [string] [default: "default"] +``` + +## Using the CLI + +You can also use the CLI to lint & get a score for your OpenAPI definition. +Create your api key on the [Rate My Open API Portal](https://api.ratemyopenapi.com/docs) + +``` +npx rmoa lint --dir /path/to/your/ --filename openapi.json --api-key zpka_1b... +``` +