vulkro-sf migration-risk
Assesses what will break when you migrate one org's metadata onto another.
vulkro-sf migration-risk ./source-org ./target-org
vulkro-sf migration-risk ./source-org ./target-org --format json > migration-risk.json
Both arguments are offline snapshots (retrieved metadata folders or SFDX source trees), the same inputs consistency and metadiff take. It builds a component map and reference graph for each.
| Finding | Meaning |
|---|---|
SF-MIGRATION-RISK-001 | Breaking reference: source references a custom component the target is missing. |
SF-MIGRATION-RISK-002 | Deprecated API blocker: a target Apex class, trigger or flow is pinned to apiVersion 30.0 or lower. |
SF-MIGRATION-RISK-003 | High risk overall: the rolled-up verdict is HIGH or CRITICAL. |
It is static only. Dynamic SOQL, Type.forName dispatch, managed-package callers and live-org-only wiring are invisible, so confirm with a deploy dry run against the target org.
| Argument or flag | What it does |
|---|---|
<SOURCE> | The org being migrated from. |
<TARGET> | The org being migrated onto. |
--format <table|json> | Output format. Default table. |
Exit codes
| Code | Meaning |
|---|---|
0 | Low risk: nothing found. |
1 | Risks found and reported. |
2 | Error (unreadable folder, no metadata in either, unknown --format). |
Command reference
Generated from vulkro-sf migration-risk --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.
Assess the risk of migrating one org onto another.
vulkro-sf migration-risk [OPTIONS] <SOURCE> <TARGET>
Arguments
| Argument | Description |
|---|---|
<SOURCE> | Source metadata snapshot (the org being migrated FROM) |
<TARGET> | Target metadata snapshot (the org being migrated ONTO) |
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 migration-risk --help
Assess the risk of migrating one org onto another.
Assess the RISK of migrating a source org onto a target org .
`<source>` and `<target>` are two OFFLINE metadata snapshots (retrieved- metadata folders or SFDX source trees), the same inputs `consistency` and `metadiff` take. The command builds a component map and reference graph for each and reports what will BREAK when source moves onto target:
SF-MIGRATION-RISK-001 (breaking reference): a custom component source references but target is missing (a removed field / class / flow source still reaches). SF-MIGRATION-RISK-002 (deprecated-api blocker): a target Apex class, trigger, or Flow pinned to a deprecated apiVersion (at or below 30.0). SF-MIGRATION-RISK-003 (high-risk overall): the rolled-up verdict is HIGH or CRITICAL.
Static analysis only: dynamic SOQL, Type.forName dispatch, managed- package callers, and live-org-only declarative wiring are invisible. Confirm with a target-org deploy dry-run before migrating.
Exit codes: 0 = low risk (no risks found); 1 = risks found and reported; 2 = error (an input path is not a readable directory, neither holds metadata, or an unknown --format).
Usage: vulkro-sf migration-risk [OPTIONS] <SOURCE> <TARGET>
Arguments:
<SOURCE>
Source metadata snapshot (the org being migrated FROM)
<TARGET>
Target metadata snapshot (the org being migrated ONTO)
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')