guarinogabriel /Mac-CLI

 macOS command line tool for developers – The ultimate tool to manage your Mac. It provides a huge set of command line commands that automatize the usage of your Mac.

★ 9,135⑂ 329👁 138⑃ 95● 106▤ 0
ShellMITCreated 2015-12-07
+2
日增长
9,135
stars
329
forks
138
watchers
95
prs
106
issues
0
releases

README

Mac CLI

 macOS command line tools for developers


---

 Sponsors



Mac CLI is sponsored by 📒 SuperPlanner, an innovative daily planner and task manager for iPhone, iPad and Mac.

SuperPlanner combines the calendar with task management features to keep everything organized in one place.

There is no login or user registration required. All data is stored locally and syncs between your devices using private and secure iCloud sync.



---

 Introduction

Mac CLI is the ultimate tool for developers to manage their Mac. It provides a huge set of command line commands that automate the usage of your macOS system.
When you run a function, the executed command is displayed and that helps you memorize each of the Utilities for future usage.

The tool is designed to be easily extendable with additional commands through the use of plugins. To view the currently available commands, you can navigate to the plugins folder and explore the different categories: /mac-cli/plugins

_Contributions to add new plugins and keep improving the existing ones are welcome and very much appreciated!_

!image

---

 Installation in 1 Simple Step - Including Configuration Wizard!

Via curl
 sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)"

Via wget
 sh -c "$(wget https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install -O -)"

Then, re-open your terminal client. You will be able to run all the commands listed below, for example:
 mac help

---

 Configuration

The configuration is done when you install Mac CLI for the first time though the installer configuration wizard.
After that, you can update your Mac CLI configuration by editing the following file: /usr/local/bin/mac

---

 Requirements

These are the requirements to be able to run all the commands (the dependencies/requirements are installed when you install Mac CLI for the first time):

 Homebrew
 Git
 Pipe Viewer (pv)

---

 Update

You can update Mac CLI to the latest version by running:
 sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/update)"

---

 Uninstallation

You can uninstall Mac CLI by running:
 sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/uninstall)"

---

 Help / Commands List

| Command  | Description | Arguments |
| ------------- | ------------- | ------------- |
| mac help  | List all available commands in mac script  | |

 General Commands

| Command  | Description | Arguments |
| ------------- | ------------- | ------------- |
| mac update  | Install macOS software updates, update installed Ruby gems, Homebrew, npm and their installed packages | |
| mac lock  | Lock  | |
| mac restart  | Restart macOS  | |
| mac sleep  | Sleep mode  | |
| mac shutdown  | Shutdown  | |
| mac time  | Show clock at top right position in Terminal/iTerm | |
| mac screensaver  | Start screensaver  | |
| mac folders:list  | List fol

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON