# m-cli を Homebrew, Nix でインストール

m-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:m-cli
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install m-cli
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#m-cli
```

  証拠: nixpkgs package indexes: pkgs/by-name/m-/m-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:m-cli
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/m-cli>
- **バージョン:** 2.0.9
- **ソース概要:** Swiss Army Knife for macOS
- **ホームページ:** <https://github.com/rgcr/m-cli>
- **リポジトリ:** <https://github.com/rgcr/m-cli>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/rgcr/m-cli/archive/refs/tags/v2.0.9.tar.gz>
- **最終更新:** 2026-06-02T20:02:01Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- m (cli)
- m (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.0.9
- マネージャ更新日: 2026-06-02
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/rgcr/m-cli
- 検出された最新: v2.0.9 (最新)
## プロジェクトの歴史と使われ方

m-cli is a shell-based macOS command-line utility that describes itself as a Swiss Army Knife for macOS in the terminal. It wraps many common system administration and preference tasks behind a single `m` command.

### プロジェクトの歴史

The public GitHub repository was created in July 2016 and is maintained as a small Unix-style command suite. Its README emphasizes macOS-only system control, no third-party dependencies, a simple manual install path, and Homebrew installation.

The project underwent a notable 2.0 syntax change: the changelog records a move from positional plugin subcommands such as `m bluetooth on` to option-based forms such as `m bluetooth --enable`, alongside generated shell completions.

### 採用の歴史

m-cli has become a recognizable macOS package-manager utility: the repository shows thousands of GitHub stars and hundreds of forks, while the input package facts list both Homebrew and Nix packaging.

Its appeal is strongest among macOS users who prefer scriptable terminal access to system settings that are otherwise spread across System Settings, Apple tools, and small command-line utilities.

### 使われ方

Users install it with Homebrew as `brew install m-cli` or manually with the upstream install script, then run `m` to list commands or `m <command> --help` for command-specific usage.

The command set covers macOS areas such as AirDrop, Bluetooth, display, DNS, Dock, Finder, firewall, Gatekeeper, network, power, printers, services, users, VPN, volume, wallpaper, and Wi-Fi. Some commands need sudo privileges or macOS privacy permissions.

### パッケージ好きにとっての重要性

For package-maintainer audiences, m-cli is an example of a Homebrew-friendly macOS wrapper that packages many native system toggles as small shell plugins rather than as a daemon or GUI app.

The 2.x syntax shift matters because it changed scripting compatibility while making completions easier to keep in sync with plugin help output.

### タイムライン

- 2016: Public GitHub repository created
- 2026: v2.0.9 released with restart and completion fixes
- 2026: GitHub repository metadata shows roughly 9.9k stars and 318 forks

### Related projects

- Homebrew packages m-cli for macOS users who want the stable packaged command.
- Nix also packages m-cli according to the supplied package-manager facts.
- The upstream README points users to related macOS command-line projects such as iproute-mac.

### ソース

- <https://api.github.com/repos/rgcr/m-cli>
- <https://github.com/rgcr/m-cli>
- <https://github.com/rgcr/m-cli/blob/main/CHANGELOG.md>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Nix - m-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/m-/m-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://pkg.so/ja/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [m4](https://pkg.so/ja/brew/m4/) - Package name indicates the same formula family.
- [mist-cli](https://pkg.so/ja/brew/mist-cli/) - Shares pkgdb curated category or tags: cli, macos, system, system-utility.
- [utiluti](https://pkg.so/ja/brew/utiluti/) - Shares pkgdb curated category or tags: automation, cli, macos, system.
- [launch](https://pkg.so/ja/brew/launch/) - Shares pkgdb curated category or tags: cli, macos, system, system-utility.
- [mole](https://pkg.so/ja/brew/mole/) - Shares pkgdb curated category or tags: cli, macos, system.
- [mas](https://pkg.so/ja/brew/mas/) - Shares pkgdb curated category or tags: cli, macos, system.
- [osx-cpu-temp](https://pkg.so/ja/brew/osx-cpu-temp/) - Shares pkgdb curated category or tags: cli, macos, system.
- [sleepwatcher](https://pkg.so/ja/brew/sleepwatcher/) - Shares pkgdb curated category or tags: automation, cli, macos, system.
- [fileicon](https://pkg.so/ja/brew/fileicon/) - Shares pkgdb curated category or tags: cli, macos, system.
- [brightness](https://pkg.so/ja/brew/brightness/) - Local package facts share a topical domain. Shared terms: cli, macos, system, system-utility.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
