Skip to content

CLI Concepts

The CLI is the stable surface for humans, scripts, tests, and agents.

Terminal window
spotuify --log-format json status
spotuify --no-daemon-start status
spotuify -o player.bitrate=160 play "ambient"
FlagMeaning
`—log-format textjson`
--no-daemon-startdo not auto-start the daemon
-o, --set key.path=valueone-shot config override; does not edit the file
-h, --helpprint help
-V, --versionprint version
Terminal window
spotuify status --format table
spotuify status --format json
spotuify search "luther" --format jsonl
spotuify playlists --format csv
spotuify playlists --format ids
FormatUse it when
tablea human is reading the terminal
jsonone object or array goes to a script
jsonlstream rows one JSON object per line
csvspreadsheet or shell text processing
idspiping stable URIs into another command

Display names are not stable. Prefer Spotify URIs when writing scripts.

Terminal window
spotuify search "never too much" --type track --format ids \
| head -n 1 \
| xargs spotuify queue add
Terminal window
spotuify playlist add "Coding" --ids tracks.txt --dry-run
spotuify playlist add "Coding" --ids tracks.txt --yes

Use --dry-run for playlist creation, playlist edits, and anything an agent might do in bulk.

CodeMeaning
0success
1general error
2usage error
3daemon unavailable
4auth error
5no active device
6Spotify rate limited
7unsupported capability
8partial mutation failure