-
Notifications
You must be signed in to change notification settings - Fork 109
Home
zmworm edited this page Apr 2, 2026
·
27 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 | Paragraph, Run, Table, Picture, Chart, Header/Footer, Section, Watermark, Bookmark, Footnote/Endnote, Hyperlink, Comment, TOC, Equation, Style, Field, SDT, Form Field |
| Excel (.xlsx) | Excel Reference | Cell, Sheet, Chart, Table, Validation, Comment, Named Range, Picture, Shape, Conditional Formatting, AutoFilter, Sparkline, Pivot Table |
| PowerPoint (.pptx) | PowerPoint Reference | Slide, Shape, Chart, Table, Picture, Connector, Group, Video/Audio, Equation, Notes, Zoom, 3D Model, Theme |
| 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 atomically |
| watch / unwatch | Live HTML preview with auto-refresh (PPT, Word, Excel) |
| 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)
- Examples - Real-world examples from the examples/ directory (formulas, charts, animations, tables)
- 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.29