How to control Spotify from command line

Hi there! Is there any way to control Spotify from the command line using mopidy? i.e. a command to play a song: "spotify play ", “spotify next” for next song, etc.

Any help would be appreciated. Thanks!

You can use mpc - not sure if it’s installed but if not,
sudo apt update
sudo apt install mpc

then use mpc play “name of spotifyplaylist” mpc next or mpc previous.
Full list of commands here

Thank you so much! That was just what I was looking for.