OfficeCLI

Single-binary CLI that lets AI agents create, read, edit, and render Word, Excel, and PowerPoint files without an Office installation.

install

OfficeCLI is a command-line tool for creating, reading, and modifying .docx, .xlsx, and .pptx files. It ships as a single binary with no dependencies and does not require Microsoft Office. It is aimed at AI agents: running officecli install copies the binary to your PATH and installs an "officecli skill" into detected coding agents such as Claude Code, Cursor, Windsurf, and GitHub Copilot.

Commands use a path-based element model. create deck.pptx makes a blank file. add deck.pptx / --type slide --prop title="Q4 Report" adds content. get deck.pptx '/slide[1]/shape[1]' --json returns structured JSON for an element. view deck.pptx outline prints a text outline, and view deck.pptx html opens a rendered preview. set and remove modify and delete elements, and close flushes the resident session to disk. The README says the tool can also analyze formatting and style problems and move or copy elements across documents.

A built-in HTML rendering engine renders documents to HTML or PNG, so an agent can render, inspect, and fix its output in a loop. officecli watch deck.pptx serves a live preview at http://localhost:26315 that refreshes after each add, set, or remove command.

Word support covers i18n and RTL (for example create --locale ar-SA), tables, styles, headers and footers, equations with LaTeX input, mermaid diagrams, comments, footnotes, tracked changes with accept and reject, form fields, content controls, and OLE objects. Excel support includes reading formulas and modifying charts. The target users are developers building agent workflows and people who want agents to produce Office documents. The AionUi desktop app is available as a GUI built on OfficeCLI.

Installation

# via Homebrew
brew install officecli
# via npm
npm install -g @officecli/officecli
# via Shell script (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash

OfficeCLI creating a PowerPoint presentation on AionUi

OfficeCLI academic paper (Word)

OfficeCLI budget tracker (Excel)

Alternatives & related tools

add a badge to your README

Maintain OfficeCLI? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/officecli.svg)](https://www.trmn.sh/tools/officecli?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/officecli?utm_source=badge"><img src="https://www.trmn.sh/badge/officecli.svg" alt="Featured on trmn" height="20"></a>