This package currently uses applescript so it will only work on osx.
Maybe once node-libspotify matures we'll use that.
$ npm install -g spotify-cli
Commands avalible are
All pretty self explanitory. The only one with args at the moment is play.
Use it as a resume.
$ spotify play INFO: Together - Logistics
Or to play a spotify uri.
$ spotify play spotify:track:1E2tRwT1GIHk1a8oYQMfjC INFO: Teenage Crime - Radio Edit - Adrian Lux