How to upload the license file from command line

If you don't have access to the console / WebUI / mobile app that enables you to upload your license file, you can use this command line from the terminal.

curl -i -H "Content-Type: plain/text; Accept: application/json" -X PUT "http://127.0.0.1:23423/rest/license-upload" -T Serviio_XXX.lic

where