spotify-remote offers a command-line interface to remote control the Spotify linux application via its D-Bus interface.