Skip to content

Instantly share code, notes, and snippets.

@neverything
Created September 22, 2023 14:14
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 neverything/79b0c1d87b52471c164fca8b49c4ef9e to your computer and use it in GitHub Desktop.
Save neverything/79b0c1d87b52471c164fca8b49c4ef9e to your computer and use it in GitHub Desktop.
Get the 108 most popular WordPress plugins and install them using the WP CLI
#!/bin/bash
# Download the JSON file
curl -sSL https://plugintable.com/plugins.json -o plugins.json
# Extract the plugin slugs using jq
plugin_slugs=$(jq -r '.[].slug' plugins.json)
# Loop through each plugin slug and install it using wp-cli
for slug in $plugin_slugs; do
wp plugin install "$slug"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment