Automic VaultAutomic Vault

brew

使用 Homebrew, Nix 安装 nowplaying-cli

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nowplaying-cli

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#nowplaying-cli

nixpkgs package indexes · pkgs/by-name/no/nowplaying-cli/package.nix · 来源: api.github.com

概览

软件包摘要

Retrieves currently playing media, and simulates media actions

命令和别名

  • nowplaying-cli

历史

项目历史与用法

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

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:media

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 4 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nowplaying-clicli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本2.1.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v2.1.0

https://github.com/kirtan-shah/nowplaying-cli

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:nowplaying-cli
版本2.1.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nowplaying-cli
主页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
Bottle可用 (于 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenowplaying-cli
Version Scheme0
Revision0
Requirements
  • macos
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

nowplaying-cli

nix profile install nixpkgs#nowplaying-cli
  • normalized package name match
  • 匹配方式:Nowplaying Cli
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/no/nowplaying-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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