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

Prerequisites

  • Node.js v24 or later
  • npm
  • Git 2.38 or later, for sdk generate and sdk publish to keep your changes to a generated SDK when you regenerate it. Without it, the commands still generate the SDK and warn that your changes won't be kept.

Install the CLI

The APIMatic CLI is available on npm. Install it globally:

npm i -g @apimatic/cli@2

Verify the installation

apimatic --version

You should see the installed version of the CLI.

Update the CLI

Run the install command again to update to the latest v2 release:

npm i -g @apimatic/cli@2

Next steps

On this page