⚠️ Version 2 includes breaking changes due to a new standardized syntax and improved shell autocompletion. See the changelog for details.
💥 The Swiss Army Knife for macOS – in your Terminal!
m-cli is a powerful command-line tool for macOS that enables you to control system functions, manage utilities, and tweak preferences – all from the Terminal.
Enjoying this tool? Consider supporting development ☕
brew install m-cli
brew install rgcr/formulae/m-cli
Note: When installed via Homebrew, shell autocompletion scripts are installed and configured automatically for Bash, Zsh, and Fish. No additional setup is needed.
curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/main/install.sh | bash
Ensure that ${HOME}/.local/bin is in your $PATH. You can add it with:
export PATH="${HOME}/.local/bin:$PATH"
Add the line above to your shell config file (e.g. ~/.bashrc, ~/.zshrc) for persistence.
To enable shell autocompletion for m, source the appropriate file based on your shell:
source ~/.local/opt/m-cli/completions/bash/m
To make it persistent, add the above line to your ~/.bashrc or ~/.bash_profile.
source ~/.local/opt/m-cli/completions/zsh/_m
To make it persistent, add the above line to your ~/.zshrc.
source ~/.local/opt/m-cli/completions/fish/m.fish
To make it persistent, add the line to ~/.config/fish/config.fish.
brew uninstall m-cli
m --uninstall
m to display all available commands.m <command> --help to see usage options for any specific command.Example:
m dock --help
airdrop • appearance • audio • battery • bluetooth • dir • disk • display • dns • dock
fan • finder • firewall • flightmode • gatekeeper • group • hostname • hosts • info
itunes • lock • music • network • nosleep • notificationcenter • ntp • permissions • powermode • printer
restart • remotelogin • safeboot • screensaver • service • shutdown • sleep • timezone • touchbar
trash • update • usb • user • volume • vpn • wallpaper • wifi
macos commands needs to be executed with sudo internally, so it's recommended you have sudo privileges.trash command will not work unless your terminal (e.g. iTerm2, Terminal.app) has the necessary permissions to access the Trash folder. You can grant this permission in System Preferences > Security & Privacy > Privacy > Full Disk Access.We ❤️ contributions!
git checkout -b my-new-featuregit commit -m 'Add some feature'git push origin my-new-featureIf you found this useful, you might also enjoy:
iproute-mac — Native Go implementation of Linux iproute2 for macOS (ip, bridge & ss).
t-mux-manager — Lightweight tmux session and project manager written in Bash.
StickyShot — Screenshot tool with floating sticky preview windows for macOS.
Snape — A Severus Snippet Manager for macOS.
© Rogelio Cedillo – Licensed under the MIT License
(top 30 of 49)
Shell
99.3%
⚠️ Version 2 includes breaking changes due to a new standardized syntax and improved shell autocompletion. See the changelog for details.
💥 The Swiss Army Knife for macOS – in your Terminal!
m-cli is a powerful command-line tool for macOS that enables you to control system functions, manage utilities, and tweak preferences – all from the Terminal.
Enjoying this tool? Consider supporting development ☕
brew install m-cli
brew install rgcr/formulae/m-cli
Note: When installed via Homebrew, shell autocompletion scripts are installed and configured automatically for Bash, Zsh, and Fish. No additional setup is needed.
curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/main/install.sh | bash
Ensure that ${HOME}/.local/bin is in your $PATH. You can add it with:
export PATH="${HOME}/.local/bin:$PATH"
Add the line above to your shell config file (e.g. ~/.bashrc, ~/.zshrc) for persistence.
To enable shell autocompletion for m, source the appropriate file based on your shell:
source ~/.local/opt/m-cli/completions/bash/m
To make it persistent, add the above line to your ~/.bashrc or ~/.bash_profile.
source ~/.local/opt/m-cli/completions/zsh/_m
To make it persistent, add the above line to your ~/.zshrc.
source ~/.local/opt/m-cli/completions/fish/m.fish
To make it persistent, add the line to ~/.config/fish/config.fish.
brew uninstall m-cli
m --uninstall
m to display all available commands.m <command> --help to see usage options for any specific command.Example:
m dock --help
airdrop • appearance • audio • battery • bluetooth • dir • disk • display • dns • dock
fan • finder • firewall • flightmode • gatekeeper • group • hostname • hosts • info
itunes • lock • music • network • nosleep • notificationcenter • ntp • permissions • powermode • printer
restart • remotelogin • safeboot • screensaver • service • shutdown • sleep • timezone • touchbar
trash • update • usb • user • volume • vpn • wallpaper • wifi
macos commands needs to be executed with sudo internally, so it's recommended you have sudo privileges.trash command will not work unless your terminal (e.g. iTerm2, Terminal.app) has the necessary permissions to access the Trash folder. You can grant this permission in System Preferences > Security & Privacy > Privacy > Full Disk Access.We ❤️ contributions!
git checkout -b my-new-featuregit commit -m 'Add some feature'git push origin my-new-featureIf you found this useful, you might also enjoy:
iproute-mac — Native Go implementation of Linux iproute2 for macOS (ip, bridge & ss).
t-mux-manager — Lightweight tmux session and project manager written in Bash.
StickyShot — Screenshot tool with floating sticky preview windows for macOS.
Snape — A Severus Snippet Manager for macOS.
© Rogelio Cedillo – Licensed under the MIT License
(top 30 of 49)
Shell
99.3%