# 使用 Homebrew, Nix 安装 nowplaying-cli

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

## 安装

```sh
sudo av install brew:nowplaying-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nowplaying-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nowplaying-cli
```

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

## 软件包事实

- **软件包键:** brew:nowplaying-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nowplaying-cli>
- **版本:** 2.1.0
- **来源摘要:** Retrieves currently playing media, and simulates media actions
- **主页:** <https://github.com/kirtan-shah/nowplaying-cli>
- **仓库:** <https://github.com/kirtan-shah/nowplaying-cli>
- **上游文档:** <https://github.com/kirtan-shah/nowplaying-cli#readme>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/kirtan-shah/nowplaying-cli/archive/refs/tags/v2.1.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- nowplaying-cli (cli)
- nowplaying-cli (别名)

## 安装行为

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

## 版本和新鲜度

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

nowplaying-cli is a macOS command-line utility for reading the system's active media metadata and sending media actions such as play, pause, next, previous, togglePlayPause, and seek. The GitHub repository was created on 2023-02-02 and the first GitHub release, v1.0.0, was published on 2023-02-03.

The project is intentionally macOS-specific and depends on private media frameworks. Its README warns that private-framework use may break with future macOS updates, and lists tested macOS versions from Ventura 13.x through Tahoe 26.3.

### 项目历史

The 1.x series shipped quickly in 2023, with releases v1.0.0 on 2023-02-03, v1.1.0 on 2023-02-08, v1.2.0 on 2023-04-18, and v1.2.1 on 2023-06-30. Releases v2.0.0 and v2.1.0 followed on 2026-04-05 and 2026-04-06.

The README credits ungive's mediaremote-adapter for restoring support on macOS 15 and 26, with derived files under src/mediaremote-mini licensed BSD-3-Clause. That note explains why a small CLI had a 2026 maintenance bump: macOS private media APIs are a moving target.

### 采用历史

For a narrow macOS utility, Homebrew adoption is notable. The formula API reported 2,614 install-on-request events in its 365-day analytics window, and the GitHub repository had 284 stars and 21 forks when queried on 2026-07-01.

The tool's adoption is practical rather than ecosystem-forming. It fits shell scripts, status bars, menu bar widgets, terminal prompts, automation shortcuts, and Stream Deck-style workflows that need a simple command to read or control the active media session.

### 使用方式

Common commands are nowplaying-cli get title artist album, nowplaying-cli get-raw for all non-nil media properties, and action commands such as play, pause, togglePlayPause, next, previous, and seek. The README maps friendly property names to MediaRemote constants such as title, artist, album, duration, elapsedTime, artworkData, playbackRate, shuffleMode, and repeatMode.

Package nerds should notice the maintenance risk: this is a convenient CLI over Apple's private MediaRemote behavior, not a stable public macOS API. Homebrew is the easiest install path, while source builds use make and make install to place the binary, helper script, and dylib together.

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

nowplaying-cli is a classic tiny macOS utility: high usefulness, small surface area, and fragile internals because it wraps private platform behavior. Its Homebrew usage suggests a real demand for scriptable now-playing metadata that Apple does not expose cleanly as a standard CLI.

### 时间线

- 2023-02-02: GitHub repository created.
- 2023-02-03: v1.0.0 released.
- 2023-06-30: v1.2.1 released.
- 2026-04-05: v2.0.0 released.
- 2026-04-06: v2.1.0 released.

### Related projects

- MediaRemote
- mediaremote-adapter
- Homebrew

### 来源

- <https://api.github.com/repos/kirtan-shah/nowplaying-cli>
- <https://api.github.com/repos/kirtan-shah/nowplaying-cli/releases?per_page=8>
- <https://formulae.brew.sh/api/formula/nowplaying-cli.json>
- <https://github.com/kirtan-shah/nowplaying-cli>
- <https://raw.githubusercontent.com/kirtan-shah/nowplaying-cli/main/README.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [shpotify](https://www.automicvault.com/zh-hans/pkg/brew/shpotify/) - Shares av.db curated category or tags: cli, macos, media, music.
- [chordii](https://www.automicvault.com/zh-hans/pkg/brew/chordii/) - Shares av.db curated category or tags: cli, media, music.
- [dzr](https://www.automicvault.com/zh-hans/pkg/brew/dzr/) - Shares av.db curated category or tags: cli, media, music.
- [mufetch](https://www.automicvault.com/zh-hans/pkg/brew/mufetch/) - Shares av.db curated category or tags: cli, media, music.
- [ncspot](https://www.automicvault.com/zh-hans/pkg/brew/ncspot/) - Shares av.db curated category or tags: cli, media, music.
- [pms](https://www.automicvault.com/zh-hans/pkg/brew/pms/) - Shares av.db curated category or tags: cli, media, music.
- [abcmidi](https://www.automicvault.com/zh-hans/pkg/brew/abcmidi/) - Shares av.db curated category or tags: cli, media, music.
- [ccm](https://www.automicvault.com/zh-hans/pkg/brew/ccm/) - Shares av.db curated category or tags: cli, media, music.

## Combined YAML source

View the package source record on GitHub. [combined/nowplaying-cli.yml](https://github.com/automic-vault/db/blob/main/combined/nowplaying-cli.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
