-
Notifications
You must be signed in to change notification settings - Fork 4
Home
zmworm edited this page Mar 23, 2026
·
14 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, Table, Picture, Chart, Watermark, ... |
| Excel (.xlsx) | Excel Reference | Cell, Sheet, Chart, Table, Validation, ... |
| PowerPoint (.pptx) | PowerPoint Reference | Slide, Shape, Chart, Table, Picture, ... |
| 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) |
| mcp | Built-in MCP server for AI agent integration |
- 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.18