# 使用 Homebrew, MacPorts, Nix 安装 terminal-notifier

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

## 安装

```sh
sudo av install brew:terminal-notifier
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terminal-notifier
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install terminal-notifier
```

  证据: MacPorts ports tree: aqua/terminal-notifier/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terminal-notifier
```

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

## 软件包事实

- **软件包键:** brew:terminal-notifier
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/terminal-notifier>
- **版本:** 2.0.0
- **来源摘要:** Send macOS User Notifications from the command-line
- **主页:** <https://github.com/julienXX/terminal-notifier>
- **仓库:** <https://github.com/julienXX/terminal-notifier>
- **许可证:** MIT
- **源码归档:** <https://github.com/julienXX/terminal-notifier/archive/refs/tags/2.0.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- terminal-notifier (cli)
- terminal-notifier (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.0
- 本地数据: OK
- 上游仓库: https://github.com/julienXX/terminal-notifier
- 检测到的最新版本: 2.0.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

terminal-notifier is a macOS command-line bridge to User Notifications. It became a common small utility for shell scripts, build systems, Ruby projects, and package-manager users that wanted Notification Center messages without writing a Cocoa application.

### 项目历史

The GitHub repository was created in July 2012, the year Apple introduced Notification Center on OS X Mountain Lion. The README explains the central packaging compromise: the tool was historically distributed as an application bundle because NSUserNotification did not work from a plain Foundation command-line tool.

The project grew around scriptable notification primitives: message text, title and subtitle, sounds, grouping and removal, opening URLs, activating apps, and setting sender or icon behavior. The README also documents a Ruby wrapper and a RubyGems installation path, which helped the tool circulate in Ruby-oriented automation as well as ordinary shell use.

A notable maintenance chapter came in 2016 and 2017, when features from alerter were merged into terminal-notifier 1.7 and then removed again for 2.0.0. The README and 2.0.0 release notes frame the split as a decision to keep terminal-notifier and alerter as smaller specialized tools, with terminal-notifier dropping sticky notifications and action buttons.

### 采用历史

terminal-notifier's README has long documented Homebrew installation alongside prebuilt releases and RubyGems. The input package facts also list Homebrew, MacPorts, and Nix, showing that it crossed from a GitHub utility into several package-manager ecosystems.

The release history shows sustained maintenance through macOS platform changes: 1.5.0 in 2013 added piped message data, sender spoofing, sound support, and URL escaping; 1.6.x handled OS X 10.10 compatibility; 1.8.0 briefly changed distribution to a standard command-line app before 2.0.0 returned to the bundle model.

### 使用方式

Typical usage is to emit a desktop notification at the end of a long-running shell command, CI step, backup job, synchronization task, or local development workflow. The README examples show piped message data, custom icons, opening a URL when clicked, and activating a macOS app.

The `-group` option is especially package-nerd friendly: scripts can replace or remove prior notifications under a stable group ID instead of spamming the notification center. The `-list` output is tab-separated, making it parseable from shell scripts.

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

terminal-notifier matters in the Homebrew-era macOS CLI niche because it gave Unix-style scripts access to a native macOS UI affordance. It is the kind of package users install once and then wire into makefiles, deploy scripts, long compiles, package builds, and dotfile workflows.

Its maintenance history also reflects a recurring packaging tension on macOS: command-line users want a simple executable, but Apple's notification APIs and App Store rules pushed the project toward an app-bundle distribution with caveats.

### 时间线

- 2012: GitHub repository created on July 15.
- 2013: Release 1.5.0 added piped input, sender, sound, URL handling, and help support.
- 2014: Release 1.6.1 added OS X 10.10 compatibility.
- 2016: Release 1.7.0 merged alerter features such as reply and actions.
- 2017: Release 1.8.0 made terminal-notifier a standard command-line app and deprecated OS X 10.8 and 10.9.
- 2017: Release 2.0.0 removed alerter features and returned to a smaller focused tool.

### Related projects

- alerter is the closest sibling project, split out for sticky notifications and action buttons. terminal-notifier also overlaps with scripting wrappers and package-manager recipes that expose macOS Notification Center from shell and Ruby workflows.

### 来源

- GitHub README: https://github.com/julienXX/terminal-notifier#readme
- GitHub releases: https://github.com/julienXX/terminal-notifier/releases
- GitHub repository metadata: https://api.github.com/repos/julienXX/terminal-notifier
- Input source_facts.package-manager


## 安全说明

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:** terminal-notifier
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - terminal-notifier: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terminal-notifier/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - terminal-notifier: normalized package name match | MacPorts ports tree: aqua/terminal-notifier/Portfile from https://api.github.com/repos/macports/macports-ports/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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [fastlane](https://pkg.so/zh-hans/brew/fastlane/) - Popular package that depends on this formula.
- [heroku](https://pkg.so/zh-hans/brew/heroku/) - Popular package that depends on this formula.
- [gopass](https://pkg.so/zh-hans/brew/gopass/) - Popular package that depends on this formula.
- [web-ext](https://pkg.so/zh-hans/brew/web-ext/) - Popular package that depends on this formula.
- [joplin-cli](https://pkg.so/zh-hans/brew/joplin-cli/) - Popular package that depends on this formula.
- [profanity](https://pkg.so/zh-hans/brew/profanity/) - Popular package that depends on this formula.
- [sql-language-server](https://pkg.so/zh-hans/brew/sql-language-server/) - Popular package that depends on this formula.
- [mikutter](https://pkg.so/zh-hans/brew/mikutter/) - Popular package that depends on this formula.
- [shared-mime-info](https://pkg.so/zh-hans/brew/shared-mime-info/) - Shares pkgdb curated category or tags: cli, desktop-integration, system.
- [mole](https://pkg.so/zh-hans/brew/mole/) - Shares pkgdb curated category or tags: cli, macos, system.
- [lima](https://pkg.so/zh-hans/brew/lima/) - Shares pkgdb curated category or tags: cli, macos, system.
- [mas](https://pkg.so/zh-hans/brew/mas/) - Shares pkgdb curated category or tags: cli, macos, system.
- [cliclick](https://pkg.so/zh-hans/brew/cliclick/) - Shares pkgdb curated category or tags: cli, macos, system.
- [dysk](https://pkg.so/zh-hans/brew/dysk/) - Shares pkgdb curated category or tags: cli, macos, system.
- [mactop](https://pkg.so/zh-hans/brew/mactop/) - Shares pkgdb curated category or tags: cli, macos, system.
- [blueutil](https://pkg.so/zh-hans/brew/blueutil/) - Shares pkgdb curated category or tags: cli, macos, system.
- [duti](https://pkg.so/zh-hans/brew/duti/) - Local package facts share a topical domain. Shared terms: cli, desktop, desktop-integration, integration, macos.
- [brightness](https://pkg.so/zh-hans/brew/brightness/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, macos, system.
- [clifm](https://pkg.so/zh-hans/brew/clifm/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, system, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/terminal-notifier.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terminal-notifier.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
