Skip to content

Instantly share code, notes, and snippets.

@mcnemesis
Last active August 29, 2015 14:25
Show Gist options
  • Save mcnemesis/b576833ab5a1c2706901 to your computer and use it in GitHub Desktop.
Save mcnemesis/b576833ab5a1c2706901 to your computer and use it in GitHub Desktop.
This is how to upgrade your WordPress site, its plugins and themes automatically via a shell, using wp-cli
#!/bin/bash
#requires: wp-cli installed
# run all the following commands inside your wordpress root directory
wp core update #updates wp itself
wp plugin update --all #update all plugins
wp theme update -all #update all themes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment