Once you have the new license key stored on your local machine, you can install it from the command line.
To install a new license key from the command line:
scp license_key_file_name.sh root@your_plesk_host_name:~/
ssh root@your_plesk_host_name
sh license_key_file_name.sh