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 yo

What is 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.

Overview of Mac-CLI

What it is

Mac-CLI is a command line tool for macOS that automates system management tasks. It installs a set of shell commands covering system, network, DNS, SSH, performance, Git, and Homebrew operations. The tool shows the executed command for each function, intended to help users memorize the utilities. It is designed to be extendable via plugins, and contributions are welcome.

Key features

  • General macOS commands: lock, restart, sleep, shutdown, screensaver, eject-all, battery status, time display, hiding/showing hidden files, folder sizes, Bluetooth and Wi-Fi toggling, and Dock space management.
  • Search tools: find exact text, recent files, biggest files/directories, and search-and-replace inside files.
  • Network utilities: internet speed test, list used ports, local/public IP address.
  • DNS utilities: list, add, remove, and flush DNS servers.
  • SSH utilities: download/upload files/folders, sync local and remote folders via rsync, list and copy SSH public keys.
  • Performance and maintenance: show system info, temperature/fan/battery stats, memory usage, empty trash, and calculate trash size.
  • Git utilities: create/rename/remove branches, undo commit, log, open repository on GitHub, and check Git settings.
  • Homebrew integration: list installed packages.

Use cases

  • Automating routine macOS tasks like lock, restart, shutdown, or empty trash.
  • Managing network connections: enabling/disabling Wi-Fi, scanning networks, checking IP addresses, running speed tests.
  • Performing DNS operations such as flushing cache or adding/removing servers.
  • Transferring files to/from remote servers via SSH with download, upload, and sync commands.
  • Monitoring system performance: temperature, fans, memory usage, and battery status.
  • Managing Git branches and commits without leaving the terminal.

Getting started

Via curl: sh sh -c ”$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)” Via wget: sh sh -c ”$(wget https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install -O -)” After installation, re‑open your terminal and run mac help to see all available commands.

License and pricing

The license is MIT. The project is marked as open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/guarinogabrielmac-cli.svg)](https://yunodb.com/tools/guarinogabrielmac-cli?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/guarinogabrielmac-cli?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/guarinogabrielmac-cli.svg" alt="Featured on YunoDB" height="20"></a>