Skip to content

Instantly share code, notes, and snippets.

@eiskalteschatten
Created October 2, 2016 12:37
Show Gist options
  • Save eiskalteschatten/b4bcfe1876c3565b4dd0ce0ea40a58be to your computer and use it in GitHub Desktop.
Save eiskalteschatten/b4bcfe1876c3565b4dd0ce0ea40a58be to your computer and use it in GitHub Desktop.
Update WordPress with a Bash script using WP CLI
#!/bin/bash
function updateWordPress {
cd $1
wp core update
wait
wp plugin update --all
wait
wp theme update --all
wait
wp core language update
wait
printf "\n\n"
}
echo "blog Name"
updateWordPress /path/to/blog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment