About this project
Mac CLI is a macOS command-line tool designed for developers to manage their Mac system efficiently. It provides a large collection of command-line commands that automate common macOS usage patterns, making system administration and development workflows more streamlined.
Key features include:
- **System Management**: Commands for locking, restarting, sleeping, and shutting down the Mac, as well as displaying system information, battery status, temperature, fan speed, and memory usage.
- **File Operations**: Utilities for finding files by modification time, searching for text recursively, finding the biggest files and directories, compressing and extracting archives (zip, gzip, tar), and calculating folder sizes.
- **Network Utilities**: Internet speed testing, listing used ports, and retrieving local and public IP addresses.
- **DNS Management**: Listing, adding, removing, and flushing DNS servers and cache.
- **SSH Utilities**: Downloading and uploading files and folders via SSH, syncing local and remote folders using rsync, copying SSH public keys, and listing saved SSH credentials.
- **Git Integration**: Displaying Git configuration, opening repositories on GitHub, creating and managing branches, undoing commits, viewing commit logs, checking Git settings, and calculating repository size.
- **Homebrew Management**: Listing installed Homebrew packages.
- **General Utilities**: Updating macOS software, Ruby gems, Homebrew, and npm packages; managing Bluetooth and Wi-Fi; ejecting volumes; showing/hiding hidden files; and displaying a clock in the terminal.
The tool is designed to be easily extendable with additional commands through a plugin architecture. Plugins are organized in a dedicated folder with different categories, and contributions to add new plugins or improve existing ones are welcome.
Installation is straightforward via a single curl or wget command, which also runs a configuration wizard. After installation, users can run commands like `mac help` to list all available commands. The tool requires Homebrew, Git, and Pipe Viewer (pv) as dependencies, which are installed automatically during setup.
Updates and uninstallation are also handled through simple curl commands. The configuration file is located at `/usr/local/bin/mac` and can be edited after the initial setup.
When a function is executed, the underlying command is displayed, which helps users memorize the utilities for future use. This educational aspect makes Mac CLI not only a productivity tool but also a learning resource for macOS command-line operations.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.