archidocs diff
Show what changed in the Model between two points in the Workspace’s history.
archidocs diff <from> [<to>] [--format text|json|markdown]Examples
Section titled “Examples”Show what your uncommitted edits change, against the last commit.
archidocs diff HEADShow what a branch changes against the default branch, as a reviewer of its pull request will see it.
archidocs diff origin/main HEADShow the Changes between two dates; each date names the last Revision at or before it.
archidocs diff 2026-01-01 2026-06-30Write the Changes as Markdown, to post as a pull request comment.
archidocs diff origin/main HEAD --format markdownArguments
Section titled “Arguments”| 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
Section titled “--format”--format text|json|markdown · Default: text.
Print the changes as text, JSON, or Markdown for a PR comment.
Exit codes
Section titled “Exit codes”| 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.
See also
Section titled “See also”- Review changes with diff: reads its output, for a working tree, a branch and two dates.
- Preview pull requests: posts
--format markdownas a pull request comment. - How the Workspace is found: where it looks for
workspace.yaml.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.