OfficeCLI lets agents and developers read, modify, and create Word, Excel, and PowerPoint files without installing Microsoft Office, from one self-contained command-line binary.
Overview
OfficeCLI is built for automating .docx, .xlsx, and .pptx files headlessly. It ships as one embedded-runtime binary for macOS, Linux, and Windows without separate Office or .NET installs on the host.
A built-in rendering path turns documents into HTML or per-page PNG so workflows can inspect layout, not only structure. Commands include create, get, query, set, add, remove, view, watch live preview, merge template placeholders from JSON, dump OOXML subtrees to batch JSON, and batch replay edits.
Word coverage spans styles, tables, images, equations, diagrams, revisions, fields, and RTL locales. Excel adds formula evaluation for hundreds of functions, pivot tables, charts, and slicers. PowerPoint supports slides, animations, transitions, charts, and media. Resident mode keeps files in memory between commands; flush rules coordinate with external tools reading the same path.
Install via curl or package managers, then officecli install can place the binary on PATH and register skills with detected coding agents. An optional MCP server integrates with agent tooling. Related AionUi provides a GUI that uses OfficeCLI underneath.
Key features
- Read and write Word, Excel, PowerPoint
- High-fidelity HTML and PNG rendering
- Live watch server for edit feedback
- Template merge from JSON placeholders
- Excel formula and pivot evaluation
- Batch and resident document sessions
- MCP server for agent integrations
- No Microsoft Office installation required
Use cases
- Agent-generated reports and slide decks
- CI pipelines that emit Office documents
- Bulk style or content updates in bulk
- Extracting structured JSON from templates
- Headless automation in containers