/pages-cli:pages runs instead · from pages-cli
Creates, edits, formats, reviews, and exports Apple Pages documents programmatically via CLI. Supports 100+ templates, text styling, tables, images, and export to PDF/Word/EPUB/text.
This skill never runs in Claude Code
It ships in pages-cli at skills/, but /pages-cli:pages (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Control Apple Pages from Claude — create, edit, format, review, and export documents.
The pages-cli command must be installed. If not available, install it automatically:
which pages-cli || (cd ${CLAUDE_PLUGIN_ROOT}/agent-harness && python3 -m venv .venv && source .venv/bin/activate && pip install -e . && echo "pages-cli installed")
If a venv already exists, activate it:
test -f ${CLAUDE_PLUGIN_ROOT}/agent-harness/.venv/bin/activate && source ${CLAUDE_PLUGIN_ROOT}/agent-harness/.venv/bin/activate
System requirements:
| Command | Action |
|---|---|
/pages new | Create a new blank document |
/pages new <template> | Create document from template |
/pages open <path> | Open an existing document |
/pages info | Show document info |
/pages close | Close document |
/pages export pdf <path> | Export as PDF |
/pages export word <path> | Export as Word |
/pages templates | List available templates |
/pages status | Show session status |
Document management:
pages-cli --json document new
pages-cli --json document new --template "Professional Report"
pages-cli --json document open "/path/to/document.pages"
pages-cli --json document info
pages-cli --json document list
pages-cli document save
pages-cli document save --path "/path/to/save.pages"
pages-cli document close
pages-cli document close --no-save
Text:
pages-cli text add "New text"
pages-cli text set "Replace entire body text"
pages-cli --json text get
pages-cli text set-font --name "Helvetica Neue" --size 14
pages-cli text set-font --name "Helvetica Neue" --size 24 --paragraph 1
pages-cli text set-color --r 0 --g 0 --b 65535 --paragraph 1
pages-cli --json text word-count
Tables:
pages-cli table add --rows 5 --cols 3 --name "Data"
pages-cli table set-cell "Data" 1 1 "Column A"
pages-cli --json table get-cell "Data" 1 1
pages-cli --json table list
pages-cli table merge "Data" "A1:B1"
pages-cli table sort "Data" --column 1
Media:
pages-cli media add-image "/path/to/image.png" --x 100 --y 200
pages-cli media add-shape --type rectangle --w 200 --h 100 --text "Box"
pages-cli --json media list
Export:
pages-cli export pdf ~/Desktop/document.pdf
pages-cli export word ~/Desktop/document.docx
pages-cli export epub ~/Desktop/book.epub --title "Title" --author "Author"
pages-cli export text ~/Desktop/document.txt
pages-cli export rtf ~/Desktop/document.rtf
pages-cli --json export formats
Templates & session:
pages-cli --json template list
pages-cli --json session status
Translate user instructions into CLI commands:
| User says | CLI command |
|---|---|
| "Write a title" | text add "Title" + text set-font --size 24 --paragraph N |
| "Make the text bigger" | text set-font --size 16 |
| "Add a table" | table add --rows N --cols N |
| "Insert this image" | media add-image "path" |
| "Export as PDF" | export pdf ~/Desktop/output.pdf |
| "How many words?" | --json text word-count |
| "Show me the text" | --json text get |
| "Review the document" | --json text get → analyze + suggest improvements |
Pages uses RGB values from 0-65535 (not 0-255):
--r 0 --g 0 --b 0--r 65535 --g 0 --b 0--r 0 --g 0 --b 65535--r 0 --g 65535 --b 0Conversion: Pages value = round((RGB_0_255 / 255) * 65535)
Full list: pages-cli --json template list
--json for query commands (info, list, get, status, word-count)source ${CLAUDE_PLUGIN_ROOT}/agent-harness/.venv/bin/activateWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marcelrgberger/pages-cli --plugin pages-cliOther plugins' skills for the same job