# 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
- **Package manager page:** <https://formulae.brew.sh/formula/dark-mode>
- **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>
- **Upstream docs:** <https://github.com/sindresorhus/dark-mode>
- **License:** MIT
- **Source archive:** <https://github.com/sindresorhus/dark-mode/archive/refs/tags/v3.0.2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dark-mode (cli)
- dark-mode (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.0.2
- Local data: ok
- Upstream repository: https://github.com/sindresorhus/dark-mode
- Upstream latest detected: v3.0.2 (current)
- info: No package-manager update timestamp was available.
## 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

## Source Database Details

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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [defaultbrowser](https://www.automicvault.com/pkg/brew/defaultbrowser/) - Shares av.db curated category or tags: cli, macos, system.
- [devcockpit](https://www.automicvault.com/pkg/brew/devcockpit/) - Shares av.db curated category or tags: cli, macos, system.
- [fileicon](https://www.automicvault.com/pkg/brew/fileicon/) - Shares av.db curated category or tags: cli, macos, system.
- [infat](https://www.automicvault.com/pkg/brew/infat/) - Shares av.db curated category or tags: cli, macos, system.
- [launch](https://www.automicvault.com/pkg/brew/launch/) - Shares av.db curated category or tags: cli, macos, system.
- [m-cli](https://www.automicvault.com/pkg/brew/m-cli/) - Shares av.db curated category or tags: cli, macos, system.
- [mas](https://www.automicvault.com/pkg/brew/mas/) - Shares av.db curated category or tags: cli, macos, system.
- [mist-cli](https://www.automicvault.com/pkg/brew/mist-cli/) - Shares av.db curated category or tags: cli, macos, system.

## Combined YAML source

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


## Sources

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