APIDiffGuard

CLI

Run the same diff engine from your terminal and CI.

Install globally:

npm i -g @apidiffguard/cli

Commands

CommandDescription
apidiff loginAuthenticate with a browser or API token
apidiff addRegister an endpoint from URL + method
apidiff baselineCapture and optionally approve a baseline
apidiff checkRun a check against the active baseline
apidiff diffPrint the latest diff summary to stdout
apidiff monitorDaemon mode for local continuous checks
apidiff importImport endpoints from an OpenAPI document

CI example

npx apidiff check --endpoint ep_users --fail-on breaking

Exit non-zero when breaking changes are detected so the pipeline stops the deploy.

On this page