Skip to content

Instantly share code, notes, and snippets.

@MrSwed
Created February 1, 2024 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrSwed/e4b95e93966b1848a140e8f266465ddf to your computer and use it in GitHub Desktop.
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
# 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