Installation
Global install
Section titled “Global install”Install Contractual globally to run contractual from any terminal. This is the fastest way to get started.
npm install -g @contractual/clipnpm add -g @contractual/cliyarn global add @contractual/clibun add -g @contractual/cliProject install (recommended for teams)
Section titled “Project install (recommended for teams)”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.
npm install --save-dev @contractual/clipnpm add -D @contractual/cliyarn add --dev @contractual/clibun add -d @contractual/cliWhen installed locally, run commands with the package manager exec:
npx contractual breakingpnpm contractual breakingyarn contractual breakingbunx contractual breakingVerify the installation
Section titled “Verify the installation”contractual --versionExpected output:
contractual/0.1.0 darwin-arm64 node-v22.0.0If 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.
Requirements
Section titled “Requirements”- Node.js 18 or later
- Git (required for snapshot diffing)
Next: Quickstart Zero to first working contractual breaking in 5 minutes.