Compare Word documents and generate redline diffs with tracked changes. A CLI tool powered by Docxodus.
$ dotnet add package RedlineA command-line tool for comparing Word documents and generating redlines with tracked changes.
dotnet tool install --global Redline
redline <original.docx> <modified.docx> <output.docx> [--author=<name>]
| Argument | Description |
|---|---|
original.docx | Path to the original document |
modified.docx | Path to the modified document |
output.docx | Path for the output redline document |
| Option | Description |
|---|---|
--author=<name> | Author name for tracked changes (default: "Redline") |
-h, --help | Show help message |
-v, --version | Show version information |
Basic comparison:
redline contract-v1.docx contract-v2.docx redline.docx
With custom author tag:
redline draft.docx final.docx changes.docx --author="Legal Review"
The tool generates a Word document with tracked changes (revisions) showing:
Open the output document in Microsoft Word or another compatible word processor to review and accept/reject changes.
REDLINE_DEBUG=1: Show detailed error information including stack tracesMIT License - see LICENSE for details.