shpotify is a simple Bash/Apple script to control Spotify from the command line on macOS.

# To find a song by name and play it:
spotify play <song_name>

# To find a playlist by name and play it:
spotify play list <playlist_name>

# To pause (or resume) playback:
spotify pause

# To skip to the next song in a playlist:
spotify next

# To change volume:
spotify vol <up|down|value>

# To show the playback status and song details:
spotify status