diff
Compare page versions and show structured diff
Compares page versions and outputs structured JSON with version metadata and change statistics.
Supports three modes: Default: compares the two most recent versions --since: shows all changes within a time range (pairwise diffs) --from/--to: compares two explicit version numbers
Examples: cf diff --id 123456 cf diff --id 123456 --since 2h cf diff --id 123456 --since 2026-01-01 cf diff --id 123456 --from 3 --to 5
GET /pages/{id}/versions
| Flag | Type | Required | Description |
|---|---|---|---|
--from | int | No | start version number for explicit comparison |
--id | string | No | page ID to compare versions (required) |
--since | string | No | filter changes since duration (e.g. 2h, 1d) or ISO date (e.g. 2026-01-01) |
--to | int | No | end version number for explicit comparison |
Example:
bash
cf diff