This is a simple Express app that allows you to control spotify playback from the command line. Feel free to modify it however you want!
- Clone this repository.
- Add this repository to your
PATH
. - Run
npm install
from the root directory to take care of dependencies. - Run
node app.js
from the root directory. - Navigate to localhost:8989 in your web browser, and authorize the app's access to your account.
- If you see the success page, you should be good to go! NOTE: Leave the server running in order for the app to function.
spotify
will echo the currently playing song.spotify next
andspotify prev
will skip one song forward and backward in the queue, respectively.spotify pause
andspotify play
will stop and start playback.