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
- Discover — Introspects the live API schema
- Build snapshot — Creates a snapshot of the current schema
- Load previous — Reads the most recent snapshot from disk
- Diff — Compares previous vs. current and categorizes changes
- 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.
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