Skip to content

symfu/m-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 m-cli

⚠️ 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!


Overview

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.

Key Features:

  • Manage system and admin tasks effortlessly
  • No third-party dependencies
  • Simple, non-intrusive installation
  • Clean and safe – doesn’t modify your system unnecessarily

Installation

Using Homebrew

brew install m-cli

Manual Installation

curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/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.


Uninstallation

Using Homebrew

brew uninstall m-cli

Manual Uninstall

m --uninstall

Usage

  • Run m to display all available commands.
  • Run m <command> --help to see usage options for any specific command.

Example:

m bluetooth --help
  • Enjoy!

Available Commands

airdropappearanceaudiobatterybluetoothdirdiskdisplaydnsdock fanfinderfirewallflightmodegatekeepergrouphostnamehostsinfo ituneslocknetworknosleepnotificationcenterntppowermodeprinter restartsafebootscreensaverserviceshutdownsleeptimezonetouchbar trashupdateusbuservolumevpnwallpaperwifi


Notes

  • Some macos commands needs to be executed with sudo internally, so it's recommended you have sudo privileges.
  • The 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.

Contributing

We ❤️ contributions!

  1. Fork the repo
  2. Create your feature branch:
    git checkout -b my-new-feature
  3. Commit your changes:
    git commit -m 'Add some feature'
  4. Push the branch:
    git push origin my-new-feature
  5. Open a Pull Request 🚀

TODO

  • Add more plugins

Resources


© Rogelio Cedillo – Licensed under the MIT License

About

 Swiss Army Knife for macOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 99.2%
  • Python 0.8%