officecli

Create, inspect, and modify Word, Excel, and PowerPoint documents via a command-line interface.

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/Grong/openhub-client --skill officecli-grong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: officecli
Source: https://github.com/Grong/openhub-client/tree/main/crates/backend/openhub-app/assets/builtin-skills/auto-inject/officecli
Command: npx skills add https://github.com/Grong/openhub-client --skill officecli-grong

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Editing Office documents programmatically usually requires heavy libraries or an installed Office suite. This Skill drives the officecli CLI to create, read, proofread, and modify .docx, .xlsx, and .pptx files directly, with no Office installation needed. ## Core Features & Use Cases - Layered editing model: L1 read/inspect (view, get, query, validate), L2 DOM operations (add, set, move, batch), and L3 raw XML for full control over any document element. - Live preview and review: watch mode renders documents in a browser with click-to-select, and marks let you propose edits for human review before applying them. - Specialized sub-skills: load dedicated rule sets for pitch decks, academic papers, financial models, dashboards, and Morph-animated presentations. - Use Case: Ask the AI to build a Q4 sales deck with styled slides and charts, then proofread a Word report for formatting issues and fix them in one batch operation. ## Quick Start Use the officecli skill to create a PowerPoint file named report.pptx with a title slide and a revenue summary text box.

Frequently Asked Questions about officecli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and edit Word, Excel, or PowerPoint files from the command line?

Use officecli create to make a blank .docx, .xlsx, or .pptx file, then add or set elements with paths like '/body/p[1]' or '/slide[1]'. Run officecli help <format> <element> to see exact property names before editing.

How do I find and replace text in a docx or pptx file programmatically?

Use officecli set with the find and replace properties, for example: officecli set doc.docx / --prop find=draft --prop replace=final. Regex matching is supported with --prop regex=true, and matches work across run boundaries.

Does officecli require Microsoft Office to be installed?

No. officecli is a single binary with no dependencies and does not need Office installed. It works directly on the OpenXML file format and can be installed via a curl or PowerShell install script.

Can I batch multiple document edits in one operation?

Yes. The batch command accepts a JSON array of add, set, get, query, remove, move, and other operations applied in one save cycle. It continues on error by default, or use --stop-on-error to abort on the first failure.

Why does my officecli path with brackets fail in the shell?

Shells like zsh and bash glob-expand square brackets, so paths like /slide[1] must be quoted: '/slide[1]'. Also note paths are 1-based while the --index flag is 0-based, except Excel row/column inserts which are 1-based.