Why you'd want it
OfficeCLI is a single binary that creates, reads and modifies .docx, .xlsx and .pptx files from the command line, with no Office installation needed. Every command supports --json output and elements are addressed by paths such as /slide[1]/shape[2], so an agent does not have to handle OOXML namespaces. It can render documents to HTML or PNG so an agent can look at its output and fix layout, and it evaluates Excel formulas on write. It also ships template merge for {{key}} placeholders, a dump command that turns a document into replayable batch JSON, and a built-in MCP server.
Best for
- Agent-generated decks, reports and spreadsheets
- Batch edits and template fill in CI
- Extracting document content to JSON
Use it when
You want an agent to produce or edit Word, Excel or PowerPoint files from a shell or over MCP, including in headless or Docker environments with no Office install.
Skip it if
You are wary of piping a script into your shell; the README's one-line installer is curl into bash, and a package manager or manual download is also listed. The install step also writes a skill file into every agent config it detects, checks for updates in the background by default, and view screenshot pipes rendered HTML through a headless browser while watch starts a local HTTP server. The README's claims of being the first and best, its fidelity claims and its comparison table are the project's own and were not checked here, so test your own documents first. The raw XML commands can rewrite document parts directly.
Editor's note
Other install routes (curl or PowerShell script, Scoop, npm, manual binaries, Python and Node SDKs) are listed in the README.