spot command plays music with a single argument — no subcommand required. Type a query and spot searches Spotify and starts playing immediately.
Basic usage
-a or -s to target an album or track instead.
You can also invoke the play subcommand explicitly:
Flags
| Flag | Description |
|---|---|
-a | Search for an album and play it. Enables repeat automatically. |
-s | Search for a track and play it. |
-a and -s directly to spot without the play subcommand:
play automatically when -a or -s is the first argument.
The
play command only supports -a (album) and -s (track/song). To search by artist name, use spot <query> directly (no flags). To search playlists, use spot search -p <query> — playlist playback is not supported via spot play.Default behavior (no flags)
When you runspot <query> without any flags, spot searches Spotify for an artist matching your query and plays the first result’s top songs. Repeat is turned off.
Examples
Playback uses AppleScript to control the Spotify desktop app directly. It does not steal focus and does not require a Spotify Premium subscription.
Aliases
Before searching, spot checks~/.config/spot/config.toml for an alias matching your query. If one exists, the alias value replaces the query before the search runs.