So you would like to upgrade Blesta via SSH? Here's how you can do that... BACKUP your DATABASE & FILES first.
Upload the files to your server / ftp:
At the time of writing 4.5.1 is available:
wget -N https://account.blesta.com/client/plugin/download_manager/client_main/download/127/blesta-4.5.1.zip
Unzip the files:
unzip blesta-4.5.1.zip
rm -rf ./blesta/config/routes.php
rm -rf ./blesta/plugins/support_manager/pipe.php
You may need to remove more.
Add the permissions to the files:
chown username: ./blesta/*
eg: chown root: ./blesta/*
\cp -rf ./blesta/* ./
Then if you need to apply a hotfix:
chown username: ./hotfix-php71/blesta/*
and then \cp -rf ./hotfix-php71/blesta/*
or
chown username: ./hotfix-php7/blesta/*
and then \cp -rf ./hotfix-php7/blesta/*
php ./index.php admin/upgrade