# 使用 Homebrew, Nix, scoop, winget 安装 officecli

查看 officecli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:officecli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install officecli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#officecli
```

  证据: nixpkgs package indexes: pkgs/by-name/of/officecli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/officecli
```

  证据: Scoop official bucket manifest trees: bucket/officecli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id HaiYing.OfficeCLI -e
```

  证据: Windows Package Manager source index: HaiYing.OfficeCLI from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:officecli
- **软件包管理器:** Homebrew
- **版本:** 1.0.143
- **来源摘要:** Read, edit, and automate Office documents (.docx, .xlsx, .pptx)
- **主页:** <https://github.com/iOfficeAI/OfficeCLI>
- **仓库:** <https://github.com/iOfficeAI/OfficeCLI>
- **最后更新:** 2026-07-28T15:48:07Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- officecli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.143
## 项目历史与用法

OfficeCLI is a C# command-line tool for reading, creating, editing, and automating Word, Excel, and PowerPoint files without requiring a Microsoft Office installation. Its README frames the project around AI-agent workflows, structured document inspection, and direct Office file manipulation.

### 项目历史

The iOfficeAI/OfficeCLI repository was created on March 15, 2026. The README describes the tool as open-source, single-binary, dependency-free, and able to operate on .docx, .xlsx, and .pptx files for format, read, modify, and create operations.

The release feed shows rapid 1.0.x iteration through June 2026, with v1.0.126 published on June 30, 2026 and downloadable binaries for Linux, Alpine Linux, macOS, and Windows across x64 and arm64 targets.

### 采用历史

OfficeCLI's adoption signal is unusually strong for a new repository. On July 1, 2026, the GitHub repository API reported 8,274 stars and 617 forks. Its topics include agent, ai, claude-code, codex, docx, xlsx, pptx, office, skills, and cli, which matches its positioning as tooling for coding assistants and document automation agents.

Packaging in Homebrew, Nix, and Winget gives the tool a cross-platform distribution path that fits its single-binary claim. The package is aimed less at traditional office users and more at automated agents, CI jobs, and developers who need deterministic document inspection or edits.

### 使用方式

The README describes use cases including creating documents from scratch, reading text, structure, styles, and formulas as plain text or structured JSON, analyzing formatting and structural problems, modifying elements such as text, fonts, colors, layout, formulas, charts, and images, and reorganizing document content.

That makes OfficeCLI useful for agents that need machine-readable Office document state before making edits, for batch document repair, for reporting pipelines that emit editable Office files, and for automation where launching a GUI office suite would be brittle or unavailable.

### 为什么软件包爱好者会关心

OfficeCLI is package-nerd-interesting because it packages an agent-facing document automation surface as a normal CLI rather than only as a library, cloud API, or editor extension. It turns Office files into a command protocol that other tools can invoke.

It also shows a 2026 packaging trend: tools built explicitly for AI coding assistants use Homebrew, Winget, Nix, binary GitHub releases, and README-described skills to reach both humans and agents.

### 时间线

- March 15, 2026: The iOfficeAI/OfficeCLI GitHub repository was created.
- June 2026: The project published frequent v1.0.x releases with platform-specific binaries and SHA256 checksums.
- June 30, 2026: v1.0.126 was published with Linux, macOS, and Windows binary assets.
- July 1, 2026: The GitHub repository API reported 8,274 stars and 617 forks.

### Related projects

- OfficeCLI is related to Open XML document tooling, docx/xlsx/pptx automation libraries, AI-agent skill systems, and CLI-driven document workflows. Its package metadata also overlaps with Codex and Claude Code because the project explicitly targets coding-agent use.

### 来源

- <https://api.github.com/repos/iOfficeAI/OfficeCLI>
- <https://formulae.brew.sh/formula/officecli>
- <https://github.com/iOfficeAI/OfficeCLI>
- <https://github.com/iOfficeAI/OfficeCLI/releases/tag/v1.0.126>


## 安全说明

没有找到 officecli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- Nix - officecli: normalized package name match | nixpkgs package indexes: pkgs/by-name/of/officecli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/officecli: normalized package name match | Scoop official bucket manifest trees: bucket/officecli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - HaiYing.OfficeCLI: normalized package name match | Windows Package Manager source index: HaiYing.OfficeCLI from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/officecli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/officecli.yml)


## 来源

- pkg.so package database
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
