Commands

sonos play

sonos play

Sends AVTransport.Play to the group coordinator. Has one subcommand for search-and-play through Sonos.

#Synopsis

sonos play --name "<Room>"
sonos play spotify --name "<Room>" <query> [flags]

#Examples

sonos play --name "Kitchen"
sonos play spotify --name "Kitchen" --category albums "kind of blue"

#Subcommands

#How it works

sonos play resolves the target's coordinator and calls AVTransport.Play(InstanceID=0, Speed=1). There must already be something on the queue / current URI; if not, the speaker stays silent.

To start a fresh source, use sonos open (Spotify URI), sonos play-uri (any URI), or sonos favorites open.