mac-cli

Crates.iomac-cli
lib.rsmac-cli
version0.1.0
created_at2025-12-30 04:52:10.278304+00
updated_at2025-12-30 04:52:10.278304+00
descriptionA simple CLI tool to control your Mac (volume, brightness, Bluetooth, Apple Music, weather)
homepagehttps://github.com/joonho3020/mac-cli
repositoryhttps://github.com/joonho3020/mac-cli
max_upload_size
id2012075
size1,783,541
joonho hwangbo (joonho3020)

documentation

https://docs.rs/mac-cli

README

mac-cli

A simple command-line tool to control your Mac from the terminal.

Demo

Features

  • Volume Control
  • Brightness Control
  • Apple Music: Control playback, navigate tracks, and manage playlists
  • Bluetooth: List devices
  • Weather: Get current weather for any location

Installation

From crates.io

cargo install mac-cli

From source

git clone https://github.com/joonho3020/mac-cli.git
cd mac-cli
cargo install --path .

Usage

The binary is called mac. Run mac --help to see all available commands.

Brightness

# Get current brightness
mac brightness

# Set brightness to 50%
mac brightness 50

Volume

# Get current volume
mac volume

# Set volume to 75%
mac volume 75

Apple Music

Music control inspired by appleMusic-cli-player.

mac music play
mac music pause
mac music next
mac music previous
mac music current
mac music playlists --list
mac music playlists "My Playlist"
mac music playlists

Bluetooth

mac bluetooth

Weather

mac weather
mac weather "San Francisco"
mac weather "London, UK"

Requirements

  • Rust 1.70+ (for building from source)
  • fzf (optional, for interactive playlist selection)

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

Commit count: 0

cargo fmt