| name | description | allowed-tools | |
|---|---|---|---|
m-cli |
Swiss Army Knife for macOS - control system functions, manage utilities, and tweak macOS preferences from the command line. Use when user needs to manage macOS settings like dark mode, dock, wifi, battery, display, volume, or any other system preference via CLI. |
|
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. It provides 48+ commands for system management.
If m-cli is not installed, guide the user to install it:
brew install m-cliDisplay all commands:
mGet help for specific commands:
m <command> --helpm appearance- Control dark/light modem appearance dark- Enable dark modem appearance light- Enable light modem appearance auto- Set automatic mode
m display- Manage display settingsm screensaver- Control screensaverm wallpaper- Set desktop wallpaperm touchbar- Configure Touch Bar settings
m restart- Restart the systemm shutdown- Shutdown the systemm sleep- Put system to sleepm lock- Lock the screenm safeboot- Manage safe boot modem update- System software updates
m battery- Battery information and settingsm volume- Control system volumem audio- Audio device managementm fan- Fan control and monitoringm powermode- Power mode settingsm nosleep- Prevent system sleep
m wifi- WiFi managementm bluetooth- Bluetooth controlm vpn- VPN managementm network- Network settingsm dns- DNS configurationm hosts- Hosts file managementm firewall- Firewall settingsm flightmode- Airplane mode togglem airdrop- AirDrop settings
m dock- Dock preferencesm finder- Finder settingsm notification- Notification Center management
m disk- Disk managementm dir- Directory informationm trash- Trash management (requires Full Disk Access)m usb- USB device management
m user- User account managementm group- Group managementm gatekeeper- Gatekeeper settingsm printer- Printer management
m info- System informationm hostname- Hostname managementm timezone- Timezone settingsm ntp- NTP (time) settingsm service- System services
m itunes- iTunes control
m appearance dark # Enable dark mode
m appearance light # Disable dark mode
m appearance auto # Auto modem wifi status # Check WiFi status
m wifi on # Turn WiFi on
m wifi off # Turn WiFi off
m wifi scan # Scan for networksm dock autohide YES # Enable auto-hide
m dock position bottom # Set positionm volume 50 # Set volume to 50%
m volume mute # Mute
m volume unmute # Unmutem battery status # Battery status
m battery percentage # Battery percentagem display status # Display information
m display brightness 50 # Set brightness- Permissions: Some commands require
sudoprivileges. Prompt the user to run with sudo if needed. - Full Disk Access: The
trashcommand needs "Full Disk Access" permissions in System Preferences for terminal applications. - Help System: Always use
m <command> --helpto see detailed options for each command.
Example 1: Toggle dark mode
m appearance darkExample 2: Configure Dock
m dock autohide YES
m dock position left
m dock magnification YESExample 3: WiFi troubleshooting
m wifi status
m wifi off
m wifi onExample 4: System information
m info
m battery status
m disk listUse this skill when the user mentions:
- macOS system settings or preferences
- Dark mode, appearance, or display settings
- WiFi, network, or connectivity
- Dock, Finder, or desktop customization
- Battery, volume, or hardware settings
- System management tasks on macOS
Always prefer m-cli over manual osascript or system preferences manipulation when the command is available, as it provides a cleaner and more reliable interface.