ctk pages
Subcommands
Section titled “Subcommands”ctk pages get [page-id]
Section titled “ctk pages get [page-id]”Retrieve a page by its ID. Returns metadata and body content.
ctk pages get 12345678Output:
Page: Architecture Overview ID: 12345678 Space ID: 131073 Status: current Version: 5 Parent ID: 131074 Created: 2025-01-10T14:30:00Z Updated: 2025-03-01T09:15:00Z
--- Body ---# Architecture Overview
This document describes the system architecture...ctk pages list [space-id]
Section titled “ctk pages list [space-id]”List pages in a space.
ctk pages list 131073Output:
ID Title Status Version───────────────────────────────────────────────────────────────12345678 Architecture Overview current 512345679 API Design current 312345680 Deployment Guide current 12
Showing 3 pagesctk pages create
Section titled “ctk pages create”Create a new page. Requires --space and --title.
ctk pages create --space 131073 --title "New Page" --body "<p>Hello</p>"ctk pages create -s 131073 -t "New Page" --parent 12345678| Flag | Short | Description |
|---|---|---|
--space | -s | Space ID (required) |
--title | -t | Page title (required) |
--body | -b | Page body in storage format |
--parent | Parent page ID |
ctk pages update [page-id]
Section titled “ctk pages update [page-id]”Update an existing page. Automatically fetches the current version and increments it.
ctk pages update 12345678 --title "Updated Title" --body "<p>New content</p>"| Flag | Short | Description |
|---|---|---|
--title | -t | New page title (required) |
--body | -b | New page body in storage format |
ctk pages versions [page-id]
Section titled “ctk pages versions [page-id]”List version history for a page.
ctk pages versions 12345678Output:
Version Author Message Minor Created─────────────────────────────────────────────────────────────────────5 5b10ac... Updated architecture 2025-03-014 5b10ac... Added diagrams 2025-02-153 5b10ac... Initial draft yes 2025-01-10
Showing 3 versionsctk pages diff [page-id]
Section titled “ctk pages diff [page-id]”Compare two versions of a page with a unified diff.
ctk pages diff 12345678 --from 3 --to 5| Flag | Description |
|---|---|
--from | Starting version number (required) |
--to | Ending version number (required) |
Output:
Diff: Architecture Overview (v3 -> v5)
- Old architecture description+ New architecture description with updated diagramsctk pages comment [page-id] [body]
Section titled “ctk pages comment [page-id] [body]”Add a footer comment to a page.
ctk pages comment 12345678 "<p>Looks good!</p>"