macOS
brew install dark-modelocal Homebrew formula metadata
安装
brew install dark-modelocal Homebrew formula metadata
概览
Control the macOS dark mode from the command-line
历史
dark-mode is a small macOS command-line utility for toggling, enabling, disabling, and querying the system dark mode state.
The project sits in the Sindre Sorhus ecosystem of narrowly scoped macOS and developer utilities. Its README describes a Swift-built binary for macOS 10.10 or later, with manual binary installation alongside package-manager installation.
The official README presents Homebrew as the primary package-manager install path and also points users to the related npm package dark-mode-cli, which made the same idea convenient for Node.js-centered environments.
The command-line interface is intentionally tiny: running dark-mode with no subcommand toggles the setting, while on, off, and status provide explicit automation-friendly operations.
For package collectors, dark-mode is a good example of a single-purpose desktop automation binary: it is small, scriptable, macOS-specific, and useful in shell aliases, dotfiles, and appearance-switching workflows.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
dark-mode | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/sindresorhus/dark-mode
安装元数据
| 软件包键 | brew:dark-mode |
|---|---|
| 版本 | 3.0.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/dark-mode |
| 主页 | https://github.com/sindresorhus/dark-mode |
| 仓库 | https://github.com/sindresorhus/dark-mode |
| 上游文档 | https://github.com/sindresorhus/dark-mode |
| 许可证 | MIT |
| 源码归档 | https://github.com/sindresorhus/dark-mode/archive/refs/tags/v3.0.2.tar.gz |
| Bottle | 可用 (于 arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dark-mode |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.