update WP – Ammon Shepherd https://mossiso.com mossiso = more better Wed, 03 Jan 2018 20:30:59 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 https://mossiso.com/wp-content/uploads/2018/12/favicon-96x96.png update WP – Ammon Shepherd https://mossiso.com 32 32 140707563 Quick WP upgrading with WPCLI https://mossiso.com/2018/01/03/quick-wp-upgrading-with-wpcli/ Wed, 03 Jan 2018 20:30:59 +0000 http://mossiso.com/?p=1683 Continue reading Quick WP upgrading with WPCLI]]> 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

Check the site in various browsers (make sure cache has been cleared).

]]>
1683