Skip to content

xlflow diff

Compare workbook files and optionally exported VBA source trees.

Usage

bash
xlflow diff <before.xlsm> <after.xlsm> [--vba-before <dir>] [--vba-after <dir>]

Options and Arguments

Option / argumentDescriptionDefault
before.xlsmBaseline workbook.required
after.xlsmWorkbook to compare.required
--vba-before <dir>Baseline exported VBA source directory.-
--vba-after <dir>Comparison exported VBA source directory.-
--jsonReturn structured diff counts and paths.false

Examples

bash
xlflow diff before.xlsm after.xlsm --json
xlflow diff before.xlsm after.xlsm --vba-before before/src --vba-after after/src --json

Notes

IMPORTANT

A successful comparison can still report differences. Inspect the JSON summary instead of treating exit code 0 as no changes.

TIP

Use pull before diff when you need workbook and source changes in one review.

JSON Output Example

Successful --json output uses the xlflow envelope plus command-specific fields.

json
{
  "status": "ok",
  "command": "diff",
  "summary": { "workbook_diffs": 2, "vba_diffs": 1, "total_diffs": 3 }
}

Released under the MIT License.