Skip to main content

vulkro-sf org sandbox-refresh-lag

Checks your sandboxes for stale refreshes and near expiry, so you do not test against a schema that no longer matches production.

vulkro-sf org sandbox-refresh-lag --target-org <devhub-alias>
vulkro-sf org sandbox-refresh-lag -o <devhub-alias> --format json

Point --target-org at your Dev Hub, not at a sandbox: sandbox records can only be read there.

FindingSeverityMeaning
SF-SANDBOX-001HighA sandbox was last refreshed more than 180 days ago.
SF-SANDBOX-002MediumA Full sandbox was last refreshed more than 90 days ago.
SF-SANDBOX-003LowA sandbox expires within 30 days.

Lag is judged by dates only. The command does not compare sandbox schema with production, and an old sandbox may be frozen on purpose.

See also: metadiff, masking-rules.

Command reference​

Generated from vulkro-sf org sandbox-refresh-lag --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.

Audit sandbox refresh lag (DevHub target required)

vulkro-sf org sandbox-refresh-lag [OPTIONS] --target-org <TARGET_ORG>

Options​

FlagDescription
-t, --target-org <TARGET_ORG>
-f, --format <FORMAT>[default: table]. 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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.
Full vulkro-sf org sandbox-refresh-lag --help
Audit sandbox refresh lag (DevHub target required)

Usage: vulkro-sf org sandbox-refresh-lag [OPTIONS] --target-org <TARGET_ORG>

Options:
-t, --target-org <TARGET_ORG>
-f, --format <FORMAT> [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