marcelrgberger/pages-cli

4 stars · Last commit 2026-03-31

Claude Code plugin: Control Apple Pages from Claude — create, edit, format & export documents via /pages slash command. 100+ templates, PDF/Word/EPUB export, tables, images, REPL mode.

README preview

# pages-cli

Claude Code plugin for full programmatic control over **Apple Pages**. Create, edit, format, and export Pages documents using slash commands, CLI, or natural language.

Covers 100% of the Pages AppleScript API — every command, class, property, and enum from the Pages scripting definition (sdef).

## Features

- **Documents** — create (100+ templates incl. custom), open, close, save, password protect
- **Text** — add, replace, style per paragraph/word/character (font, size, color, bold, italic)
- **Tables** — create, fill, formulas, cell formatting, range styling (alignment, colors, wrap), merge/unmerge/sort/clear, row height, column width, header/footer rows & columns
- **Media** — images (with alt text), shapes (with text), text boxes, audio clips, movies, lines, groups — rotation, opacity, reflection, lock, position, size
- **Export** — PDF, Word, EPUB, plain text, RTF, Pages 09 — with password, image quality, comments, annotations, full EPUB metadata
- **Templates** — list all (incl. custom), create from template, placeholder filling
- **Sections & Pages** — multi-section/page body text access
- **Session** — state tracking, history, REPL with prompt_toolkit
- **JSON output** — `--json` flag on all commands for agent integration

## Requirements

View full repository on GitHub →