Updating WordPress via the CLI is pretty easy. First make sure you have wp-cli installed. I’ll use my Linode as an example. Then it’s as simple as this:
Loop Through An Array
Today I needed to loop through the output of a command on the WP CLI. The most simple way I could think to do that was to save the output of the command into an array and loop through it. What I did was use wp site list to get