spt is a really simple NodeJS script to control Spotify from the command line on a Mac.
- node: >= 7.6
- yarn
- macOS Sierra or newer
You need to install the script manually by following a few steps:
-
Fetch a copy of this repository.
Ex: $ git clone git@github.com:brnbp/spotify-for-terminal.git && cd spotify-for-terminal
-
Navigate to the folder where you fetched the repository and install dependencies:
$ yarn
-
Make sure the file called
spt
is executable:chmod +x spt
-
Make a symbolic link for spt at a convenient location in your PATH, or set your PATH to include the folder where the file is located.
Ex: $ sudo ln -s $PWD/spt /usr/local/bin
spt play Play current song.
spt pause Pause current song.
spt next Skip to the next song.
spt prev Return to the previous song.
spt status Shows the play status, including the current song details.
spt open Open Spotify.
spt quit Stops playback and quits Spotify.
spt --help Shows a summary of available commands