Skip to main content
vela diff compares your local schema files against the remote API and prints a summary of what would change. It makes no mutations.

Usage

Example output

Legend

Exit codes

Exit code 1 does not mean an error occurred. It means drift was detected. Use this in CI to fail the build when schemas are out of sync.

CI usage

Use vela diff as a gate in your pipeline to catch schema drift before it reaches production:
Or with a descriptive message:

GitHub Actions example

This job will fail if any schema is out of sync, blocking the PR from merging until schemas are pushed.

Options

When schemas match

If all local schemas match the remote, vela diff prints:
And exits with code 0.

Difference from vela push

vela diff is a read-only preview. vela push actually applies the changes. Running vela diff before vela push is a good habit — see the plan, then execute it.