# Install dark-mode with Homebrew

Control the macOS dark mode from the command-line. Version 3.0.2 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:dark-mode
- **Package manager:** Homebrew
- **Version:** 3.0.2
- **Source summary:** Control the macOS dark mode from the command-line
- **Homepage:** <https://github.com/sindresorhus/dark-mode>
- **Repository:** <https://github.com/sindresorhus/dark-mode>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- dark-mode (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.0.2
## Project history and usage

dark-mode is a small macOS command-line utility for toggling, enabling, disabling, and querying the system dark mode state.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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)


## Sources

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