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
Usevela diff as a gate in your pipeline to catch schema drift before it reaches production:
GitHub Actions example
Options
When schemas match
If all local schemas match the remote,vela diff prints:
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.