Control WiiM and LinkPlay audio devices from the command line.
# Install globally
uv tool install wiim-cli
# Or run directly without installing
uvx --from wiim-cli wiim --help
Requires Python >=3.11.
All commands accept --host to target a specific device. If omitted and only one device is on the network, it auto-discovers.
wiim discover # Find devices on the network
wiim status # Show what's playing
wiim play # Resume
wiim pause # Pause
wiim stop # Stop
wiim next # Next track
wiim prev # Previous track
wiim seek 90 # Seek to 1:30
wiim shuffle true # Enable shuffle
wiim volume # Show current volume
wiim volume 50 # Set to 50%
wiim mute # Mute
wiim unmute # Unmute
wiim play-url "https://example.com/stream.mp3" # Play a URL
wiim play-preset 1 # Play saved preset #1
play-url works with direct audio URLs (MP3, FLAC, M3U streams, etc.).共 1 个版本