Skip to main content
Compare your current API schema against the last saved snapshot. Reports added, removed, modified, and breaking changes. Use --fail-on-breaking to gate CI pipelines.

Usage

Flags

How It Works

  1. Discover — Introspects the live API schema
  2. Build snapshot — Creates a snapshot of the current schema
  3. Load previous — Reads the most recent snapshot from disk
  4. Diff — Compares previous vs. current and categorizes changes
  5. Save — Writes the current snapshot as the new baseline
On the first run (no previous snapshot exists), the current schema is saved as the baseline. No diff is produced.

Examples

Check for schema changes

CI gate for breaking changes

Returns exit code 1 if any breaking changes are detected. Use this in CI to block deployments that introduce breaking API changes.

JSON output for tooling

Commit your .dino/snapshots directory to version control so that dino diff always has a baseline to compare against, even in fresh CI environments.

Exit Codes