# 使用 Homebrew, Nix 安装 invoice

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

## 安装

```sh
sudo av install brew:invoice
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install invoice
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#invoice
```

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

## 软件包事实

- **软件包键:** brew:invoice
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/invoice>
- **版本:** 0.1.0
- **来源摘要:** Command-line invoice generator
- **主页:** <https://github.com/maaslalani/invoice>
- **仓库:** <https://github.com/maaslalani/invoice>
- **许可证:** MIT
- **源码归档:** <https://github.com/maaslalani/invoice/archive/refs/tags/v0.1.0.tar.gz>
- **最后更新:** 2026-07-26T04:07:50+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- invoice (cli)
- invoice (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/maaslalani/invoice
- 检测到的最新版本: v0.1.0 (当前)
## 项目历史与用法

Invoice is a small Go command-line utility for generating PDF invoices from terminal arguments, environment variables, or imported JSON/YAML data. It belongs to the modern single-purpose CLI tradition: one binary, examples in the README, and binary distribution through GitHub releases and package managers.

### 项目历史

The public repository describes Invoice as a command-line invoice generator and documents the core workflow with `invoice generate`. The repository release list records an initial release in June 2023, with the README directing users to either install from Go source or download release binaries.

### 采用历史

Invoice gained package-manager visibility through the Homebrew formula and Nix metadata supplied in the input package facts. Its GitHub repository also shows a visible small-utility audience, with stars and forks centered around a compact CLI rather than a larger invoicing platform.

### 使用方式

The primary usage is generating a PDF invoice by supplying sender, recipient, line items, quantities, rates, tax, discount, notes, and output path on the command line. The README also documents environment variables for repeated values and importing JSON/YAML data for repeatable invoice generation.

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

Invoice is notable as a clean example of a personal-productivity CLI that does not try to become an accounting system. For package maintainers, it is a small Go binary with a direct upstream, a short release history, and behavior that is easy to smoke-test by generating a PDF.

### 时间线

- 2023-06: Public attention and initial GitHub release for the Invoice CLI.
- 2023: README documents Go installation, release binaries, CLI flags, environment variables, and JSON/YAML import.
- Package-manager era: Homebrew and Nix package the `invoice` executable.

### Related projects

- Go's module installer is an official installation route via `go install github.com/maaslalani/invoice@main`.
- Homebrew and Nix provide package-manager routes for users who prefer managed binaries.

### 来源

- <https://formulae.brew.sh/formula/invoice>
- <https://github.com/maaslalani/invoice>
- <https://github.com/maaslalani/invoice/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Nix - invoice: normalized package name match | nixpkgs package indexes: pkgs/by-name/in/invoice/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [typst](https://pkg.so/zh-hans/brew/typst/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [marp-cli](https://pkg.so/zh-hans/brew/marp-cli/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [superfile](https://pkg.so/zh-hans/brew/superfile/) - Shares pkgdb curated category or tags: cli, go, productivity.
- [lf](https://pkg.so/zh-hans/brew/lf/) - Shares pkgdb curated category or tags: cli, go, productivity.
- [hledger](https://pkg.so/zh-hans/brew/hledger/) - Shares pkgdb curated category or tags: cli, finance, productivity.
- [diff-pdf](https://pkg.so/zh-hans/brew/diff-pdf/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [evince](https://pkg.so/zh-hans/brew/evince/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [xpdf](https://pkg.so/zh-hans/brew/xpdf/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [cloudpan189-go](https://pkg.so/zh-hans/brew/cloudpan189-go/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, go, line, productivity.
- [cpdf](https://pkg.so/zh-hans/brew/cpdf/) - Both packages work with overlapping file formats or content types. Shared terms: cli, command-line, line, pdf, productivity.
- [tock](https://pkg.so/zh-hans/brew/tock/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, go, line, productivity.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- 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
