sonoscli is a modern command-line interface for controlling Sonos speaker systems directly from the terminal using local network communication protocols. Written in Go, the tool allows users to discover, group, and manage Sonos devices without relying on the official desktop or mobile applications. It supports playback controls, room grouping, queue management, favorites, live event subscriptions, and Spotify integration while maintaining a scriptable interface suitable for automation workflows. The project emphasizes reliability through SSDP discovery, topology awareness, and subnet scan fallbacks to ensure consistent device detection across different network environments. It also provides structured outputs such as JSON and TSV, making it useful for scripting, monitoring, and integration with external automation systems. Designed for developers and power users, sonoscli combines low-level control with a streamlined user experience optimized for terminal environments.
Features
- Terminal-based Sonos speaker management
- Reliable network discovery and topology awareness
- Playback and queue control commands
- Room grouping and scene management
- Spotify integration without direct credentials
- JSON and TSV output for automation workflows