Skip to main content

vulkro-sf consistency

Compares the metadata of two orgs, typically a sandbox and production, and reports where they have drifted apart.

vulkro-sf consistency ./sandbox-metadata ./prod-metadata
vulkro-sf consistency ./sandbox-metadata ./prod-metadata --format json > drift.json

Each argument is a retrieved metadata folder or an SFDX source tree, one per org. Retrieve each org with your sf CLI first: the command reads local folders only. The comparison is symmetric.

FindingMeaning
SF-MULTIORG-001A component in both orgs with different content (a permission set, flow or field that drifted).
SF-MULTIORG-002A component in only one org (a field in production that never reached the sandbox).

To score the risk of deploying one onto the other, use vulkro-sf diff. For a change log of one org over time, use vulkro-sf metadiff.

Argument or flagWhat it does
<snapshotA>First org (for example the sandbox).
<snapshotB>Second org (for example production).
--format <table|json>Output format. Default table.

Exit codes​

CodeMeaning
0No divergence.
1At least one divergence reported.
2Error (unreadable folder, no metadata in either, unknown --format).