Scripts to automate updates on Wordpress sites.
node
- Node installed locally. It is recommended you use NVM to manange your version of Node.
-
Clone this repo
git clone [email protected]:dylanjameswagner/WordPress-Update-Scripts.git
For this example to
~/Projects/WordPress-Update-Scripts
-
Make the update files executable
chmod +x ~/Projects/WordPress-Update-Scripts/update-plugins ~/Projects/WordPress-Update-Scripts/update-themes
-
From your terminal change directory into your project
cd ~/Projects/exampleproject.com/
-
Start your local Lando site
lando start
, pull a database as neededlando pull --code=none --database=live --files=none
-
Run the plugin update script as needed
~/Projects/WordPress-Update-Scripts/update-plugins
-
Run the theme update script as needed
~/Projects/WordPress-Update-Scripts/update-themes
-
(Optional) Alias these commands in your shell config for quicker access
alias update-list='echo "~/Projects/WordPress-Update-Scripts/update-list" && ~/Projects/WordPress-Update-Scripts/update-list'
alias update-plugins='echo "~/Projects/WordPress-Update-Scripts/update-plugins" && ~/Projects/WordPress-Update-Scripts/update-plugins'
alias update-themes='echo "~/Projects/WordPress-Update-Scripts/update-themes" && ~/Projects/WordPress-Update-Scripts/update-themes'
- Explore running these script in a more traditional command line way.