July 5, 2022

QB 008:  m-cli – Swiss Army Knife for macOS

Thanks to  m-cli – Swiss Army Knife for macOS – Bram.us for introducing me to rgcr/m-cli:  Swiss Army Knife for macOS

I installed this through The Missing Package Manager for macOS (or Linux) — Homebrew.

m help gives you a list of the commands that  m-cli can execute.

airdrop
appearance
battery
bluetooth
dir
disk
display
dns
dock
finder
firewall
flightmode
gatekeeper
group
hostname
info
itunes
localhost
lock
network
nosleep
notification
ntp
printer
restart
safeboot
screensaver
service
shutdown
sleep
timezone
touchbar
trash
update
user
volume
vpn
wallpaper
wifi

Some Examples

m airdrop
Options: [ status | on | enable | off | disable | help ]

Explanation:

m airdrop status
airdrop status

m airdrop on
turn on airdrop

m airdrop enable
turn on airdrop

m airdrop off
turn off airdrop

m airdrop disable
turn off airdrop

Some more useful commands:

m appearance darkmode
Options: [ YES | NO ]
Whether to use dark versions of interface elements

m dock autohide
Options: [ YES | NO ]
Enable/disable Dock’s auto hide feature

m dock magnification
Options: [ YES | NO ]
Turn magnification on/off

m dock position
Options: [ BOTTOM | LEFT | RIGHT ]
Change Dock’s position

Explore the others on your own. Most of them are useful and they are all easy to reach through the Terminal.

macosxguru at the gmail thingie.


terminal macOS


Previous post
iA Writer 6 Adds Wikilinks Product: Writer – iA Price: $49.99 iA Writer 6 adds Wikilinks as its new superpower. Wikilinks lets you connect to other files in your library.
Next post
QB 009: Tyro Keyboard Maestro Macros Product: Tyro — Keyboard Maestro Macros for Apprentices Price: $1.99 This is unusual. Folks don’t usually charge for Keyboard Maestro macros. In