You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple command-line tool to install OpenAPI SDKs with a single command.
Installation
npm install -g oapis
Usage
Install an OpenAPI SDK for any domain:
oapis install example.com
Or install a specific operation:
oapis install example.com__getUsers
Short form is also supported:
oapis i example.com
How It Works
The oapis tool:
Configures npm to use the OpenAPI SDK registry (https://npm.oapis.org) for @oapis packages
Installs the requested SDK package
This eliminates the need to run multiple commands manually.
Programmatic Usage
You can also use oapis programmatically in your Node.js projects:
constoapis=require("oapis");// Install an OpenAPI SDKoapis.install("example.com").then(()=>console.log("SDK installed!")).catch((err)=>console.error("Failed to install SDK:",err));
About oapis
This package is part of the oapis ecosystem, a package manager for auto-generated OpenAPI SDKs. The system automatically generates client libraries for any domain that has an openapi.json file available.
Features
Auto-generates SDKs on-demand
Always in sync with the latest OpenAPI spec
Simple installation with a single command
Support for specific operations via the domain__operationId syntax