Skip to content

Installation

Install Contractual globally to run contractual from any terminal. This is the fastest way to get started.

Terminal window
npm install -g @contractual/cli

Install as a dev dependency so every contributor uses the same version. Add contractual to package.json scripts or run it via the package manager exec command.

Terminal window
npm install --save-dev @contractual/cli

When installed locally, run commands with the package manager exec:

Terminal window
npx contractual breaking
Terminal window
contractual --version

Expected output:

contractual/0.1.0 darwin-arm64 node-v22.0.0

If the command is not found after a global install, make sure the package manager global bin directory is on PATH. Running npm config get prefix (or the equivalent for the package manager) shows where global binaries are installed.

  • Node.js 18 or later
  • Git (required for snapshot diffing)