Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Force reinstall all plugins or themes #3293
I feel like this has been suggested before, but the past issues I found were actually different (either about core, or about an individual plugin/theme)
I would really like it if there were a way to:
Which would reinstall all plugins/themes with the latest version from the repo.
There is a regular plugin I've used for this in the past: https://wordpress.org/plugins/baw-force-plugin-updates/ but it seems a natural fit to wp cli.
This is common step when dealing with a hacked site and frankly I'd like to run it periodically on non-hacked sites just in case anything got out of sync between repos and servers.
You can achieve the same by composing two commands:
I'll include this as an example in the docs
referenced this issue
Aug 16, 2016
Oh fancy! Thanks!
Question (obviously I'm not that versed in bash scripting): Is the first $ your bash prompt? I use zsh and have a custom prompt, but I it didn't work when I included the first $.
Obviously I'm not that versed in bash syntax.... I found this https://www.gnu.org/software/bash/manual/bash.html#Command-Substitution which I assume is that function, just want to make sure I'm not missing something.
So this normally works, but I'm getting fatals from plugins and the theme calling a member function on null (old code using globals). Normally --skip-plugins and --skip-themes would bypass that, but here I get
I guess you can't skip when installing? Seems odd though as I thought those were global params https://developer.wordpress.org/cli/commands/plugin/install/