This is the easiest way to upgrade WordPress. You’ll execute these commands on the server itself.
Requirements
- ssh access to your server
- wp-cli command installed (instructions for installing wp-cli at http://wp-cli.org/)
Install/Upgrade WP CLI
- wp-cli should be upgraded each time a WordPress installation is upgraded.
wp cli update
Upgrade WP
Prep work
Change into the WP directory
cd /path/to/wordpress/installation/
Make a list of active plugins
wp plugin list --status=active --format=csv --fields=name | tail -n +2 > ../active-plugins.txt
Update all plugins
wp plugin update --all
Deactivate all of the plugins
wp plugin deactivate --all
Upgrade WordPress
wp core update
Reactivate all of the previously active plugins.
cat ../active-plugins.txt | xargs wp plugin activate