So I got tired of being handed X # of new sites and having to manually install all the same plugins across of them.
- Create your plugins.txt file.
Each plugin needs to be the wp-cli name (what you get when you go
One per line! Ex:
wp @yoursitealias plugin list
iwp-client wordfence really-simple-ssl stop-spammer-registrations-plugin litespeed-cache
- Make sure you give the .sh file execute permissions
chmod +x plugin_installer.sh
- Go nuts: ./plugin_installer /path/to/plugins.txt yoursitealias