A Windows command-line tool for controlling media playback and system volume.
- Volume Control: Set, increase, or decrease system volume
- Media Playback: Control play/pause, next track, and previous track
- Smart Toggle: Automatically pause or play based on current playback state
- Silent Execution: Runs without showing a console window (perfect for automation tools like Zebar)
- Standalone: No .NET runtime required - completely self-contained
- Download
media-cli.exefrom the latest release - Place it in a directory of your choice
- Optionally add it to your PATH
winget install louisjrdev.media-cliSet volume to a specific level (0-100):
media-cli set-volume 50Increase volume by 10% (default):
media-cli increase-volumeIncrease volume by a custom amount:
media-cli increase-volume 5Decrease volume by 10% (default):
media-cli decrease-volumeDecrease volume by a custom amount:
media-cli decrease-volume 15Toggle play/pause:
media-cli play
# or
media-cli pauseSmart toggle (shows current state):
media-cli toggle-playbackNext track:
media-cli nextPrevious track:
media-cli previousThis tool is designed to work seamlessly with Zebar and other automation tools:
{
"type": "text",
"on_click": "shell-exec: C:\\path\\to\\media-cli.exe toggle-playback"
}Requirements:
- .NET 10 SDK
- Windows 10/11
git clone https://github.com/louisjrdev/media-cli.git
cd media-cli
dotnet publish -c Release -o publishThe standalone executable will be in publish/media-cli.exe.
MIT