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
| Symbol | Meaning |
|---|---|
! | Schema has pending changes (will be created or updated) |
✓ | Schema is identical to remote — no action needed |
+ | Field will be added |
- | Field will be removed |
~ | Field or description has changed |
Exit codes
| Code | Meaning |
|---|---|
0 | All schemas are in sync — no changes pending |
1 | Changes detected — one or more schemas would be created or updated |
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
| Flag | Description |
|---|---|
--app <slug> | Override the app from vela.config.json |
--dir <path> | Override the schemas directory |
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.