A simple command-line tool to install OpenAPI SDKs with a single command.
npm install -g oapisInstall an OpenAPI SDK for any domain:
oapis install example.comOr install a specific operation:
oapis install example.com__getUsersShort form is also supported:
oapis i example.comThe oapis tool:
- Configures npm to use the OpenAPI SDK registry (
https://npm.oapis.org) for@oapispackages - Installs the requested SDK package
This eliminates the need to run multiple commands manually.
You can also use oapis programmatically in your Node.js projects:
const oapis = require("oapis");
// Install an OpenAPI SDK
oapis
.install("example.com")
.then(() => console.log("SDK installed!"))
.catch((err) => console.error("Failed to install SDK:", err));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.
- 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__operationIdsyntax