DEV Community

Taras Shkodenko
Taras Shkodenko

Posted on

Keep your WordPress CMS websites up-to-date with wp-cli and wp-cli-updater

Consider using https://github.com/podlom/wp-cli-updater if you have some amount of WordPress CMS websites you need to periodically update.

Installation:
git clone https://github.com/podlom/c.git

cd https://github.com/podlom/wp-cli-updater.git

cp -fvp config/environments.sample.php config/environments.php

Edit config/environments.php and define your WordPress CMS environments.

Usage:

Update WordPress CMS core for environment #1
php8.1 update-core.php 1

Update WordPress CMS plugins for environment #1
php8.1 update-plugins.php 1

Update WordPress CMS themes for environment #1
php8.1 update-plugins.php 1

Top comments (0)