# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/officecli>
- **版本:** 1.0.143
- **来源摘要:** Read, edit, and automate Office documents (.docx, .xlsx, .pptx)
- **主页:** <https://github.com/iOfficeAI/OfficeCLI>
- **仓库:** <https://github.com/iOfficeAI/OfficeCLI>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/iOfficeAI/OfficeCLI/archive/refs/tags/v1.0.143.tar.gz>
- **最后更新:** 2026-07-28T15:48:07Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- officecli (cli)
- officecli (别名)

## 依赖

- dotnet

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.143
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://github.com/iOfficeAI/OfficeCLI
- 检测到的最新版本: v1.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。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** officecli
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [dotnet](https://pkg.so/zh-hans/brew/dotnet/) - Runtime dependency declared by Homebrew.
- [gnumeric](https://pkg.so/zh-hans/brew/gnumeric/) - Shares pkgdb curated category or tags: cli, office, productivity.
- [doxx](https://pkg.so/zh-hans/brew/doxx/) - Shares pkgdb curated category or tags: cli, docx, productivity.
- [docx2txt](https://pkg.so/zh-hans/brew/docx2txt/) - Shares pkgdb curated category or tags: cli, docx, productivity.
- [tmux](https://pkg.so/zh-hans/brew/tmux/) - Shares pkgdb curated category or tags: cli, productivity.
- [vim](https://pkg.so/zh-hans/brew/vim/) - Shares pkgdb curated category or tags: cli, productivity.
- [himalaya](https://pkg.so/zh-hans/brew/himalaya/) - Shares pkgdb curated category or tags: cli, productivity.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity.
- [emacs](https://pkg.so/zh-hans/brew/emacs/) - Shares pkgdb curated category or tags: cli, productivity.
- [office-addin-cli](https://pkg.so/zh-hans/npm/office-addin-cli/) - Local package facts share a topical domain. Shared terms: cli, office, productivity, read.
- [office-addin-manifest](https://pkg.so/zh-hans/npm/office-addin-manifest/) - Local package facts share a topical domain. Shared terms: cli, office, productivity, read.
- [feishu2md](https://pkg.so/zh-hans/brew/feishu2md/) - Local package facts share a topical domain. Shared terms: cli, document, documents, productivity.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
