Skip to content

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

FlagTypeRequiredDescription
--fromintNostart version number for explicit comparison
--idstringNopage ID to compare versions (required)
--sincestringNofilter changes since duration (e.g. 2h, 1d) or ISO date (e.g. 2026-01-01)
--tointNoend version number for explicit comparison

Example:

bash
cf diff