Uploading music to Google Play Music from the command line using gmusicapi

I’ve always found uploading my music to Google Play Music a pain using their tools to be a pain. Luckily you can do it via your CLI!

Install gmusicapi-wrapper:
pip3 install docopt gmusicapi-wrapper

Download the gmusicapi script to upload our music (supports .mp3, .flac, .m4a, .ogg):
wget https://raw.githubusercontent.com/thebigmunch/gmusicapi-scripts/master/gmusicapi_scripts/gmupload.py

Run the gmupload script:
./gmupload.py songname.mp3

For even easier use (access the script from anywhere):
mv gmupload.py /usr/local/bin/gmupload

gmupload songname.mp3

Please note, on the first time running this you will need to follow the link provided by the script to insert your authentication key into terminal.

For specific usage of the script have a look at the documentation here