1.0.2 • Published 2 years ago
@openapihub/oah-provider-cli v1.0.2
OAH PROVIDER CLI
This package provides a unified command line interface to OpenAPIHub.
Getting Started
Install via npm i @openapihub/oah-provider-cli -g
Login
Run the command
oah-provider-cli login
Enter Username and Password after open the browser
You can start using CLI
Create API
Example 1. Get your OpenAPIHub Portal Name on https://provider-portal.openapihub.com
- Take examples/api-creation.json as example and update your API information
{
"api_name": "Hello World API 2",
"category": "Communications",
"short_description": "API short description"
}
Prepare your swagger file
Run the command to onboard your API on OpenAPIHub
oah-provider-cli api --portal 'provider portal 123' create --input-json 'examples/api-creation.json' --api-spec 'examples/swagger.json'