Created
February 1, 2024 22:36
-
-
Save MrSwed/e4b95e93966b1848a140e8f266465ddf to your computer and use it in GitHub Desktop.
WordPress. Install missing plugins with wp-cli plugin command from just restored db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# thanks https://github.com/wp-cli/wp-cli/issues/2217#issuecomment-158125933 | |
wp plugin install $(for p in `wp option get active_plugins --allow-root | grep '=>' | awk '{print $3}'` ; do echo $p | grep -oE "[^'/]+/"| grep -oE "[^/]+"; done) --allow-root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment