Skip to content

dylanjameswagner/WordPress-Update-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Update Scripts

Scripts to automate updates on Wordpress sites.

Prerequisites

  • node - Node installed locally. It is recommended you use NVM to manange your version of Node.

Installation

  1. Clone this repo

    git clone [email protected]:dylanjameswagner/WordPress-Update-Scripts.git

    For this example to ~/Projects/WordPress-Update-Scripts

  2. Make the update files executable

    chmod +x ~/Projects/WordPress-Update-Scripts/update-plugins ~/Projects/WordPress-Update-Scripts/update-themes

  3. From your terminal change directory into your project

    cd ~/Projects/exampleproject.com/

  4. Start your local Lando site lando start, pull a database as needed

    lando pull --code=none --database=live --files=none

  5. Run the plugin update script as needed

    ~/Projects/WordPress-Update-Scripts/update-plugins

  6. Run the theme update script as needed

    ~/Projects/WordPress-Update-Scripts/update-themes

  7. (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'

To Do

  • Explore running these script in a more traditional command line way.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •