sfdx-org-snapshot

Public
On this page

    CLI that snapshots an org's metadata and sample data into versioned JSON — diff two snapshots to see what actually changed between refreshes.

    What it does

    sfdx-org-snapshot pull captures metadata plus a configurable sample of records per object into a content-addressed JSON tree; diff renders what changed between any two snapshots as a readable report.

    Install

    pipx install sfdx-org-snapshot, authenticate with your existing sf CLI session, and add the pull to your post-refresh script. Snapshots are plain files — commit them, diff them, grep them.

    Design notes

    Records are sampled deterministically (newest N per object, IDs redacted on request) so two pulls of an unchanged org produce identical trees — which is what makes the diffs mean something.