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.
| Finding | Meaning |
|---|---|
SF-MULTIORG-001 | A component in both orgs with different content (a permission set, flow or field that drifted). |
SF-MULTIORG-002 | A 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 flag | What it does |
|---|---|
<snapshotA> | First org (for example the sandbox). |
<snapshotB> | Second org (for example production). |
--format <table|json> | Output format. Default table. |
Exit codes
| Code | Meaning |
|---|---|
0 | No divergence. |
1 | At least one divergence reported. |
2 | Error (unreadable folder, no metadata in either, unknown --format). |
Command reference
Generated from vulkro-sf consistency --help (vulkro-sf 0.33.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.
Compare two orgs' metadata for drift, such as sandbox versus production.
vulkro-sf consistency [OPTIONS] <snapshotA> <snapshotB>
Arguments
| Argument | Description |
|---|---|
<snapshotA> | First org snapshot (e.g. the sandbox tree) |
<snapshotB> | Second org snapshot (e.g. the production tree). The comparison is symmetric: neither side is privileged. |
Options
| Flag | Description |
|---|---|
-f, --format <FORMAT> | Output format: table or json. Default: table. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
Full vulkro-sf consistency --help
Compare two orgs' metadata for drift, such as sandbox versus production.
Check MULTI-ORG CONSISTENCY between two metadata snapshots (sandbox / prod divergence).
`<snapshotA>` and `<snapshotB>` are two retrieved-metadata folders or SFDX source trees, one per org (typically a sandbox tree and the production tree, or two orgs being reconciled). The command builds a component map for each and reports the STRUCTURAL DIVERGENCES that matter for consistency: a component present in both orgs with different content (SF-MULTIORG-001: a permission set, flow, or field that drifted between the environments), and a component present in only one org (SF-MULTIORG-002: a field in prod that never reached sandbox, a validation rule that only lives in one). When two orgs are supposed to track each other, a silent divergence is where a deploy surprises you or a security control quietly differs between environments.
This is DISTINCT from `vulkro-sf diff` (which scores the DEPLOYMENT RISK of moving A -> B, a directional weighted number) and from `vulkro-sf metadiff` (a plain change log of the SAME org over time): `consistency` is a symmetric cross-org report that carries finding IDs so a CI lane can gate on environment drift.
Exit codes: 0 = the two snapshots are consistent (no divergence); 1 = at least one divergence was found and reported; 2 = error (a snapshot path is not a readable directory, neither holds metadata, or an unknown --format).
Usage: vulkro-sf consistency [OPTIONS] <snapshotA> <snapshotB>
Arguments:
<snapshotA>
First org snapshot (e.g. the sandbox tree)
<snapshotB>
Second org snapshot (e.g. the production tree). The comparison is symmetric: neither side is privileged
Options:
-f, --format <FORMAT>
Output format: table or json
[default: table]
-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)
-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged
--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb
-h, --help
Print help (see a summary with '-h')