Spotify

Control Spotify playback and search via terminal

foxl-ai b601b40 1.2 KB Updated

File contents

Spotify Skill

Control Spotify playback from terminal.

Requirements

  • Spotify Premium account
  • Either spogo or spotify_player installed

When to use

  • User wants to play music
  • User wants to search for songs
  • User wants to control playback

How to execute

Using spogo (Preferred)

Setup - import cookies:

spogo auth import --browser chrome

Search:

spogo search track "song name"
spogo search artist "artist name"
spogo search album "album name"

Playback:

spogo play
spogo pause
spogo next
spogo prev

Devices:

spogo device list
spogo device set "<name|id>"

Status:

spogo status

Using spotify_player (Fallback)

Search:

spotify_player search "query"

Playback:

spotify_player playback play
spotify_player playback pause
spotify_player playback next
spotify_player playback previous

Connect device:

spotify_player connect

Like current track:

spotify_player like

Notes

  • Config folder: ~/.config/spotify-player
  • TUI shortcuts available via ? in the app

foxl-ai/skills/tree/main/skills/spotify commit b601b40b5e

Frequently asked questions

npx skillmds@latest add foxl-ai/spotify