JSON Output
Machine-readable output is part of the product. Scripts and agents should prefer json, jsonl, or ids.
Pick a format
Section titled “Pick a format”spotuify status --format jsonspotuify search "luther" --format jsonlspotuify playlists --format idsPlayback
Section titled “Playback”spotuify status --format jsonExpected shape:
{ "device": { "id": "device-id", "name": "spotuify-hume" }, "item": { "uri": "spotify:track:...", "name": "Track", "subtitle": "Artist" }, "playing": true, "progress_ms": 42000}Search rows
Section titled “Search rows”spotuify search "luther vandross" --type track --format jsonlExpected row shape:
{ "uri": "spotify:track:...", "id": "track-id", "kind": "track", "name": "Never Too Much", "subtitle": "Luther Vandross", "duration_ms": 216000, "source": "spotify"}Mutation receipts
Section titled “Mutation receipts”spotuify next --format jsonExpected shape:
{ "ok": true, "action": "next", "message": "Skipped"}Playlist creation receipts include playlist data:
spotuify playlist create "Focus" --from candidates.jsonl --dry-run --format json{ "ok": true, "action": "playlist-create", "playlist_uri": "spotify:playlist:...", "name": "Focus", "added_item_count": 20}spotuify search "luther" --format idsExpected shape:
spotify:track:...spotify:album:...