# 使用 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
- **版本:** 2.0.0
- **来源摘要:** Send macOS User Notifications from the command-line
- **主页:** <https://github.com/julienXX/terminal-notifier>
- **仓库:** <https://github.com/julienXX/terminal-notifier>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terminal-notifier (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


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