{"name":"OfficeCLI: The AI-Native CLI for Word, Excel, and PowerPoint Automation","description":"OfficeCLI is a free, open-source command-line interface designed for AI agents and developers to read, edit, and automate Word, Excel, and PowerPoint files. It operates as a single binary, requiring no Office installation or dependencies. With its built-in rendering and formula engines, OfficeCLI enables high-fidelity document manipulation and visualization in headless environments.","github":"https://github.com/iOfficeAI/OfficeCLI","url":"https://osrepos.com/repo/iofficeai-officecli","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/iofficeai-officecli","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/iofficeai-officecli.md","json":"https://osrepos.com/repo/iofficeai-officecli.json","topics":["ai-agent","cli","office-automation","word","excel","powerpoint","csharp","document-generation"],"keywords":["ai-agent","cli","office-automation","word","excel","powerpoint","csharp","document-generation"],"stars":null,"summary":"OfficeCLI is a free, open-source command-line interface designed for AI agents and developers to read, edit, and automate Word, Excel, and PowerPoint files. It operates as a single binary, requiring no Office installation or dependencies. With its built-in rendering and formula engines, OfficeCLI enables high-fidelity document manipulation and visualization in headless environments.","content":"## Introduction\n\nOfficeCLI is the world's first and best Office suite specifically designed for AI agents to read, edit, and automate Word, Excel, and PowerPoint files. This free, open-source command-line interface operates as a single binary, requiring no Microsoft Office installation or external dependencies. It empowers AI agents and developers to gain full control over document manipulation with simple, powerful commands.\n\nA key feature of OfficeCLI is its built-in HTML rendering engine, which reproduces documents with high fidelity. This allows AI agents to \"see\" the rendered document, enabling a crucial render, look, and fix loop for precise adjustments, even in headless or containerized environments.\n\n## Installation\n\nGetting started with OfficeCLI is straightforward, thanks to its self-contained binary.\n\n**One-line install for macOS / Linux:**\n\nbash\ncurl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash\n\n\n**One-line install for Windows (PowerShell):**\n\npowershell\nirm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex\n\n\nAlternatively, you can download the binary for your specific platform directly from the [GitHub Releases](https://github.com/iOfficeAI/OfficeCLI/releases?target=_blank) page. After downloading, simply run `officecli install` to set it up and integrate it with detected AI coding agents.\n\n## Examples\n\nOfficeCLI simplifies complex document tasks into concise commands. Here's a quick start to create and modify a PowerPoint presentation:\n\n**1. Create a blank PowerPoint:**\n\nbash\nofficecli create deck.pptx\n\n\n**2. Start live preview (opens in your browser):**\n\nbash\nofficecli watch deck.pptx\n\n\n**3. In another terminal, add a slide and watch the browser update instantly:**\n\nbash\nofficecli add deck.pptx / --type slide --prop title=\"Hello, World!\"\n\n\n**4. Get structured JSON for an element:**\n\nbash\nofficecli get deck.pptx '/slide[1]' --json\n\n\nThis provides a clear, machine-readable output for easy integration into automated workflows.\n\n## Why Use OfficeCLI?\n\nOfficeCLI offers unique advantages for both AI agents and human developers:\n\n*   **AI-Native Design**: Provides deterministic JSON output, path-based addressing, and a progressive complexity model (L1: Read, L2: DOM, L3: Raw XML) that minimizes token usage for AI agents.\n*   **Built-in Rendering Engine**: Allows AI agents to visualize their output with `view html`, `view screenshot`, or `watch`, enabling self-correction of layout issues without needing Microsoft Office.\n*   **Powerful Document Automation**: Automate report generation, batch-process documents, build CI/CD document pipelines, and perform headless Office automation in Docker environments.\n*   **Comprehensive Functionality**: Supports creating, reading, modifying, analyzing, and reorganizing content across Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) files.\n*   **Advanced Features**: Includes a built-in formula and pivot engine for Excel, template merging for `{{key}}` placeholders, and a round-trip `dump` command to learn from existing documents.\n*   **Cross-Platform & Zero-Install**: Ships as a single, self-contained binary for macOS, Linux, and Windows, embedding the .NET runtime so there's nothing else to install.\n\nCompared to traditional methods, OfficeCLI streamlines document manipulation, making it highly efficient for modern AI-driven and automated workflows.\n\n## Links\n\n*   **GitHub Repository**: [iOfficeAI/OfficeCLI](https://github.com/iOfficeAI/OfficeCLI?target=_blank)\n*   **Official Website**: [officecli.ai](https://officecli.ai?target=_blank)\n*   **Community Discord**: [Join Discord](https://discord.gg/2QAwJn7Egx?target=_blank)","metrics":{"detailViews":1,"githubClicks":0},"dates":{"published":null,"modified":"2026-06-28T15:43:30.000Z"}}