# Installer m-cli avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de m-cli pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

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

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:m-cli
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.0.9
- **Résumé source:** Swiss Army Knife for macOS
- **Page d'accueil:** <https://github.com/rgcr/m-cli>
- **Dépôt:** <https://github.com/rgcr/m-cli>
- **Dernière mise à jour:** 2026-06-02T20:02:01Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- m (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 2.0.9
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- 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


## 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)


## Sources

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