Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

johnelse/spotify-cli

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

114 Commits
114 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-cli Build status

Minimal OCaml CLI program for controlling the spotify desktop client. Supported platforms:

  • Linux (via DBus)
  • Mac OSX (via osascript)

Installation

The easiest way to install is with opam, an OCaml package manager:

    opam install spotify-cli

Build dependencies

Supported commands

    spotify-cli now-playing
    spotify-cli play-pause
    spotify-cli previous
    spotify-cli next
    spotify-cli play-album <search-string>
    spotify-cli play-artist <search-string>
    spotify-cli play-track <search-string>

play-album, play-artist and play-track search for the supplied name using the spotify metadata API, and play the first result (if any).

search-string doesn't have to match the album or track title exactly - in fact you will probably get better results if you specify the artist name along with the album or track name e.g.

    spotify-cli play-album "sepultura arise"

About

CLI program for controlling the spotify desktop client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.