🎶 A nodejs app to control Spotify without leaving your terminal. 🎶
A nodejs app to control Spotify without leaving your terminal. Only works with Mac Os as it relies on AppleScript behind the scenes to communicate with the Spotify app.
npm install spotify-cli-mac -g
Client will be available under the alias
spotify
In order to use the client, you'll need to set Spotify Credentials. You can do this by going to developer dashboard and then creating a new application.
Once you have created a new Spotify Application, just run the Spotify CLI with
spotify tokencommand to set your tokens.
spotify
Commands:
search|s [query...] Search for a
Options:
-h, --help output usage information
In order to be able to use the
lyricscommand, you will need to get a
Client Access Tokenfor the
Genius API. Sign up for API access here: https://genius.com/api-clients
Once you have your client access token, edit the
~/.spotify-cli-config.jsonwith
GeniusAPIClientKeykey
Example
json { "spotifyClientID": "XXXXXXX", "spotifyClientSecret": "XXXXXXX", "spotifyUsername": "XXXXXXX", "GeniusAPIClientKey": "XXXXXXX" }
Album artwork will also be displayed if you're using iTerm 2.9+.
Contributions and feedback are welcome and encouraged!