Install the APIMatic CLI
What the APIMatic CLI does and how to install, verify, and update it.
The APIMatic CLI (apimatic) is the command-line interface to APIMatic, for use in your terminal or in automation scripts and CI/CD pipelines.
What you can do with the APIMatic CLI
- Validate and lint your API definition.
- Transform your API definition between formats such as OpenAPI, RAML, Postman, and WSDL.
- Generate APIMatic SDKs in C#, Python, and TypeScript.
- Publish APIMatic SDKs to NuGet, PyPI, npm, and GitHub using publishing profiles.
- Generate and preview a developer portal from your API definition and guides.
- Generate and publish APIMatic Context Plugins for AI coding agents.
Prerequisites
- Node.js v24 or later
- npm
Install the CLI
The APIMatic CLI is available on npm. Install it globally:
npm i -g @apimatic/cli@betaVerify the installation
apimatic --versionYou should see the installed version of the CLI.
Update the CLI
Run the install command again to update to the latest release:
npm i -g @apimatic/cli@beta