-
Notifications
You must be signed in to change notification settings - Fork 636
Home
goworm edited this page Jul 6, 2026
·
70 revisions
OfficeCLI is a command-line tool for reading, creating, and modifying Office documents (.docx, .xlsx, .pptx) using a DOM-like path system.
| Format | Reference | Elements |
|---|---|---|
| Word (.docx) | Word Reference | Document, Paragraph, Run, Table, Picture, Shape, Textbox, Chart, Header/Footer, Section, Watermark, Bookmark, Footnote/Endnote, Hyperlink, Comment, TOC, Equation, Style, Numbering, Field, SDT, Form Field, OLE Object, Revision, Diagram (mermaid), Chart Axis, Chart Series, Positional Tab |
| Excel (.xlsx) | Excel Reference | Cell, Formula Functions, Sheet, Sort, Chart, Table, Validation, Comment, Named Range, Picture, Shape, Conditional Formatting, AutoFilter, Sparkline, Pivot Table, Slicer, OLE Object, Chart Axis, Chart Series, Page Break, Detected Table, Row, Column |
| PowerPoint (.pptx) | PowerPoint Reference | Slide, Shape, Chart, Table, Picture, Connector, Group, Video/Audio, Equation, Diagram (mermaid), Notes, Comment, Zoom, 3D Model, Theme, OLE Object, Modern Comment, Animation |
| Command | Word | Excel | PowerPoint |
|---|---|---|---|
| view | Word | Excel | PPT |
| get | Word | Excel | PPT |
| query | Word | Excel | PPT |
| add | Word | Excel | PPT |
| set | Word | Excel | PPT |
| raw / raw-set | Word | Excel | PPT |
| Command | Description |
|---|---|
| create | Create a blank document |
| open / close | Resident mode for fast workflows |
| remove | Remove elements |
| move | Move elements |
| swap | Swap two elements' positions |
| validate | Validate against OpenXML schema |
| batch | Execute multiple commands in one pass |
| dump | Serialize document → replayable batch JSON (docx; round-trip mechanism) |
| refresh | Recalculate TOC page numbers / PAGE / cross-refs (docx; Word backend on Windows, headless-HTML fallback) |
| plugins | Manage installed plugins (list, info, lint) — extend OfficeCLI to .doc, .hwpx, .pdf export, etc. |
| watch / unwatch | Live HTML preview with auto-refresh (PPT, Word, Excel) |
| mark / unmark / get-marks | Review annotations on document elements |
| goto | Push scroll target to watching browser(s) (paragraph / table / row / cell / slide) |
| mcp | Built-in MCP server for AI agent integration |
| merge | Template merge with {{key}} placeholders |
| skills | Install skill definitions for AI agent clients |
| install | One-step setup: binary + skills + MCP |
- Agent Guide - How to navigate this wiki (start here)
- i18n & RTL - Multilingual documents, per-script fonts, right-to-left layout (Arabic/Hebrew/Thai/CJK)
- Examples - Real-world examples from the examples/ directory (formulas, charts, animations, tables)
- Use Cases - Conversational walkthroughs: real user goals, full dialogue, exact commands
- Workflows - End-to-end recipes (create report, spreadsheet, presentation)
- Troubleshooting - Common errors and solutions
- Command Reference - Global options, operating modes, units, conventions
- Version - Wiki version and source mapping (JSON)
Based on OfficeCLI v1.0.64