spotctl is command-line interface to control Spotify from your favorite terminal.
Demo
Installation
You can download the latest release for your operating system here.
Manual Instllation
spotctl needs to connect to Spotify's API in order to control it.
To manually build it, you first need to sign up (or into) Spotify's developer site and create an Application.
Once you've done so, you can find its Client ID and Client Secret values and run the following command: