The ultimate Salesforce data comparison tool – compare orgs with load-plan.json or any SOQL query
npm install sf-data-util> Compare Salesforce data between two orgs in seconds — with stunning, interactive HTML reports.
No more manual exports. No more Excel hell. Just run one command and get a beautiful, searchable, filterable, exportable comparison report.
!KPI
- Two modes: Load-plan based or direct SOQL query
- Smart key detection (StockKeepingUnit, ProductCode, ExternalId, Code, Name, Id)
- Interactive filter buttons (Only in Source / Target / Values Differ / Identical)
- Live search on all tables with row count feedback
- Copy SOQL button with success animation
- Safe Excel export (handles huge text fields)
- Column sorting on all tables
- Zero dependencies beyond Node.js
``bash`
npm install -g sf-data-util
`bash`
sf-data-util compare \
-s source-org@company.com \
-t target-org@company.com \
-l ./load-plan.json \
-o Product2
`bashDirect query
sf-data-util query \
-s dev \
-t prod \
-q "SELECT StockKeepingUnit, Name, ProductCode FROM Product2 WHERE IsActive = true"
Output
Generates a file like:
`
sf-compare-Product2-1737412345678.html
`Automatically opens in your default browser with:
- KPI dashboard
- Source & Target raw tables
- Combined diff table with color coding
- Interactive filters
- Search + live counts
- One-click Excel export
Requirements
- Node.js 18+
- Salesforce CLI (
sf`) logged into both orgsMIT © 2025 Mohan Chinnappan
---
Made with ❤️ for Salesforce admins, developers, and consultants who are tired of comparing data the hard way.