Update WordPress core and plugins via SSH

ssh username@somedomain.com
cd public_html
wp core update
wp plugin update --all