Swiss Army Knife for macOS
:boom: Swiss Army Knife for macOS !
m-cli is a macOS command line tool that lets you interact with utilities and applications entirely in Terminal. It differs from other macOS command line tools in the following ways:
You can install m-cli using Homebrew, or you can manually install it.
If you have Homebrew installed, run:
brew install m-cli
If you want to manually install m-cli, run:
curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh | sudo sh
You can also install it to a different path, shown below:
Note: You need privileges
To uninstall m-cli from your system, run:m --uninstall
How To Use
m-cli commands are executed using the following steps:
1. Runmto display all of the commands (utilities) available in m-cli.
2. Runmto display the options available for this command.
3. Runmto execute an option for this command.
A diagram of this structure is shown below:m |___itunes | |___status | |___play | |___pause | | | ... | |___disk |___ls |___list |___fs ...
For example, runningm ituneswill display the options available for iTunes, as shown below:usage: m itunes [ status | play | pause | next | prev | mute | unmute | vol up | vol down | vol #| stop | quit | help ]
Examples: m itunes status # Show status m itunes play # Play track m itunes pause # Pause track m itunes next # Play next track m itunes prev # Play previous track m itunes mute # Mute iTunes m itunes unmute # Unmute iTunes m itunes vol up # Volume Up m itunes vol down # Volume Down m itunes vol # # Set volume level m itunes stop # Stop track m itunes quit # Quit iTunes
In this example, runningm itunes playwill play the current selected track in your iTunes music library.
m-cli currently supports the following commands:helpaudiobatterybluetoothdirdiskdisplaydnsdockfinderfirewallflightmodegatekeeperhostnameinfoituneslocalhostlockntpprinternetworknosleepnotificationrestartsafebootscreensaverserviceshutdownsleeptimezonetouchbartrashupdateuservolumevpnwallpaperwifi
- Fork it!
- Create your feature branch:git checkout -b my-new-feature
- Commit your changes:git commit -m 'Add some feature'
- Push to the branch:git push origin my-new-feature
- Submit a pull request :metal:
guarinogabriel/Mac-CLI was a great source of inspiration.
MIT License © Rogelio Cedillo