# 使用 Homebrew 安装 dark-mode

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

## 安装

```sh
sudo av install brew:dark-mode
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dark-mode
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dark-mode
- **软件包管理器:** Homebrew
- **版本:** 3.0.2
- **来源摘要:** Control the macOS dark mode from the command-line
- **主页:** <https://github.com/sindresorhus/dark-mode>
- **仓库:** <https://github.com/sindresorhus/dark-mode>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dark-mode (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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.

### 时间线

- 2017: 2.x releases were published on GitHub.
- 2019: v3.0.0 was published.
- 2021: v3.0.2 was published.

### Related projects

- The README links related official projects including dark-mode-cli, node-dark-mode, and alfred-dark-mode.

### 来源

- <https://github.com/sindresorhus/dark-mode>
- <https://github.com/sindresorhus/dark-mode/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/dark-mode.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dark-mode.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
