Skip to content

archidocs diff

Show what changed in the Model between two points in the Workspace’s history.

archidocs diff <from> [<to>] [--format text|json|markdown]

Show what your uncommitted edits change, against the last commit.

Terminal window
archidocs diff HEAD

Show what a branch changes against the default branch, as a reviewer of its pull request will see it.

Terminal window
archidocs diff origin/main HEAD

Show the Changes between two dates; each date names the last Revision at or before it.

Terminal window
archidocs diff 2026-01-01 2026-06-30

Write the Changes as Markdown, to post as a pull request comment.

Terminal window
archidocs diff origin/main HEAD --format markdown
Argument Meaning
<from> A git ref, or a date or time, which names the last Revision at or before it.
[<to>] A ref, date or time like <from>; with none, the working tree.

--format text|json|markdown · Default: text.

Print the changes as text, JSON, or Markdown for a PR comment.

Code Meaning
0 The Changes were printed. It exits 0 whether or not anything changed, so a script that asks whether the Model changed must read the output, not the exit code.
2 It could not run: an unknown flag, a flag missing its value, an unknown format, no point or more than two, an unknown ref or date, a date before the first Revision, a sha prefix of several Revisions, no Workspace found, or a Workspace outside git.

Exit 2 prints the reason to stderr as archidocs: <message>, and after most mistakes in the command line, the usage summary.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.