[GH-ISSUE #135] spotify-player via bash/CLI #60

Closed
opened 2026-03-02 23:44:09 +03:00 by kerem · 9 comments
Owner

Originally created by @lenlennart on GitHub (Feb 16, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/135

Is your feature request related to a problem? Please describe.
I am looking for a substitution of my current setup using libspotify/mopidy.

Describe the solution you'd like
Control the spotify-player via bash.
Essentially, i would like to issue a bash command on my machine (providing Spotify URI or alike) which then starts steaming the music. I dont want to have to go over the tui.

Describe alternatives you've considered
hmm... no idea.

Additional context
< imagine a screenshot of an empty terminal window here >

Originally created by @lenlennart on GitHub (Feb 16, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/135 **Is your feature request related to a problem? Please describe.** I am looking for a substitution of my current setup using libspotify/mopidy. **Describe the solution you'd like** Control the spotify-player via bash. Essentially, i would like to issue a bash command on my machine (providing Spotify URI or alike) which then starts steaming the music. I dont want to have to go over the tui. **Describe alternatives you've considered** hmm... no idea. **Additional context** < imagine a screenshot of an empty terminal window here >
kerem 2026-03-02 23:44:09 +03:00
Author
Owner

@lenlennart commented on GitHub (Feb 16, 2023):

if this is already possible, could you point me to an example/documentation?

<!-- gh-comment-id:1433001163 --> @lenlennart commented on GitHub (Feb 16, 2023): if this is already possible, could you point me to an example/documentation?
Author
Owner

@aome510 commented on GitHub (Feb 16, 2023):

I assume that you want a headless spotify-player. I don't really have any plans to do that as spotify-player is a TUI application. I think you may want to look into spotifyd.

<!-- gh-comment-id:1433437254 --> @aome510 commented on GitHub (Feb 16, 2023): I assume that you want a **headless** `spotify-player`. I don't really have any plans to do that as `spotify-player` is a TUI application. I think you may want to look into [spotifyd](https://github.com/Spotifyd/spotifyd).
Author
Owner

@lenlennart commented on GitHub (Feb 16, 2023):

ok thanks.
spotifyd (just as 99% of the forks of librespot ) requires a dedicated spotify client (eg mobile phone) to operate... so they do me no good.

<!-- gh-comment-id:1433615527 --> @lenlennart commented on GitHub (Feb 16, 2023): ok thanks. spotifyd (just as 99% of the forks of [librespot](https://github.com/librespot-org/librespot) ) requires a dedicated spotify client (eg mobile phone) to operate... so they do me no good.
Author
Owner

@aome510 commented on GitHub (Feb 16, 2023):

No iirc, spotifyd itself is a client, so you don't need another one. From the project's README:

Spotifyd streams music just like the official client, but is more lightweight and supports more platforms. Spotifyd also supports the Spotify Connect protocol, which makes it show up as a device that can be controlled from the official clients.

<!-- gh-comment-id:1433817475 --> @aome510 commented on GitHub (Feb 16, 2023): No iirc, `spotifyd` itself is a client, so you don't need another one. From the project's README: > Spotifyd streams music just like the official client, but is more lightweight and supports more platforms. Spotifyd also supports the Spotify Connect protocol, which makes it show up as a device that can be controlled from the official clients.
Author
Owner

@lenlennart commented on GitHub (Feb 16, 2023):

Afaik spotifyd is only the deamon supporting the Spotify protocols. Most people seem to use spotify-tui to control it (which offered a nice clean CLI), but thats no longer maintaned. This is why i ended up on your repo in the first place :-)

But thanks anyway, much appreciation!

<!-- gh-comment-id:1433888039 --> @lenlennart commented on GitHub (Feb 16, 2023): Afaik spotifyd is only the deamon supporting the Spotify protocols. Most people seem to use spotify-tui to control it (which offered a nice clean CLI), but thats no longer maintaned. This is why i ended up on your repo in the first place :-) But thanks anyway, much appreciation!
Author
Owner

@lenlennart commented on GitHub (Feb 16, 2023):

FYI - for anyone also interested: librespot-java offers an HTTP-Endpoints which can be served by curling:
https://github.com/librespot-org/librespot-java/tree/dev/api

<!-- gh-comment-id:1433893085 --> @lenlennart commented on GitHub (Feb 16, 2023): FYI - for anyone also interested: librespot-java offers an HTTP-Endpoints which can be served by curling: https://github.com/librespot-org/librespot-java/tree/dev/api
Author
Owner

@sewnie commented on GitHub (Feb 22, 2023):

i think a workaround is to literally spawn spotify-player into an empty shell, and have one of #103 (control and query spotify-player, and other devices) feature request implemented.

however, you can simply use spotifyd and control it with playerctl :D

<!-- gh-comment-id:1440417094 --> @sewnie commented on GitHub (Feb 22, 2023): i think a workaround is to *literally* spawn `spotify-player` into an empty shell, and have one of #103 (control and query spotify-player, and other devices) feature request implemented. however, you can simply use `spotifyd` and control it with `playerctl` :D
Author
Owner

@cheyngoodman commented on GitHub (Apr 26, 2023):

This appears to be related to https://github.com/aome510/spotify-player/issues/42 in terms of replacing other music daemons.

<!-- gh-comment-id:1523859964 --> @cheyngoodman commented on GitHub (Apr 26, 2023): This appears to be related to https://github.com/aome510/spotify-player/issues/42 in terms of replacing other music daemons.
Author
Owner

@aome510 commented on GitHub (Apr 26, 2023):

Yeah, I'm aware of this issue and the other one. Currently working on implementing daemon support.

<!-- gh-comment-id:1523893606 --> @aome510 commented on GitHub (Apr 26, 2023): Yeah, I'm aware of this issue and the other one. Currently working on implementing daemon support.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#60
No description provided.