Updating ten plugins from the WordPress dashboard means ten page loads, ten chances for a timeout, and one white screen that takes the whole site down with it. The command line does the same job in seconds, and it gives you a log you can read when something goes wrong. This guide shows how to bulk update WordPress plugins WP-CLI style: back up first, update in small batches, test after each batch, and roll back in minutes if an update misbehaves.
Why bulk updates break WordPress sites
Most plugin updates are boring and safe. The ones that break sites usually share one of three causes. First, two plugins that worked fine together at their old versions clash at the new ones, often because both hook into the same filter or load different versions of the same JavaScript library. Second, a plugin update expects a newer PHP or WordPress version than your server runs, so it fatals on activation. Third, the update itself gets interrupted: a PHP timeout or a lost connection halfway through leaves files half-written, which is how you get the white screen.
The dashboard hides all of this. It runs updates over HTTP, one at a time, with no useful log when one fails. WP-CLI runs the same update routines from the shell, where a timeout is your timeout, not the web server’s, and every error prints to your terminal in plain text. If you already manage WordPress from the terminal, WP-CLI can handle most day-to-day WordPress tasks faster than the dashboard, and bulk plugin updates are the clearest example.
Before you update: back up and snapshot
Never run a bulk plugin update without a fresh backup you have actually tested. A backup you have never restored is a hope, not a safety net. Export the database and copy the files before you start:
cd /var/www/yoursite.com wp db export ~/backups/db-$(date +%F).sql tar -czf ~/backups/files-$(date +%F).tar.gz wp-content
If your provider offers VPS snapshots, take one too. A snapshot restores the whole server in minutes, which beats rebuilding a site file by file at midnight. Scheduling snapshots before every major update turns this from a chore you remember into a habit you never skip. And if you have never tested a restore, do it once on a spare directory: testing your backup restores before you actually need them is the only way to know the backup works.
For a site that earns money or takes orders, run the updates on a staging copy first. A staging copy on the same VPS costs almost nothing to set up and lets you watch the exact update fail somewhere safe instead of on the live shop.
Bulk Update WordPress Plugins WP-CLI: A Safe Step-by-Step Workflow
With the backup done, the safe workflow has four steps: list what is outdated, update in small batches, test after each batch, and keep a note of versions so you can roll back.
Step 1: See what is outdated
List every plugin with an available update, including the version it would move to:
wp plugin list --update=available --fields=name,version,update_version,update
Read the list before you touch anything. Look for major version jumps, such as 2.x to 3.x, and for plugins you do not recognize, which may be abandoned or installed by a previous developer. Check the changelog of anything with a major jump. A plugin that jumps two major versions in one update deserves its own batch, or a staging test first.
Preview the full update without changing anything:
wp plugin update --all --dry-run
The dry run shows what WP-CLI would do. If it errors here, fix that problem first. A dry run that fails usually points at a permissions problem or a plugin update package that cannot be downloaded, both easier to fix before files start changing.
Step 2: Update in small batches, not all at once
The whole point of a careful wp-cli plugin update is that you can still tell which plugin broke things. Update five or fewer plugins per batch, and group them by risk: small, well-maintained plugins together; anything with a major version jump on its own.
wp plugin update akismet jetpack wordfence
To update everything except one plugin you want to hold back, use the exclude flag:
wp plugin update --all --exclude=woocommerce,elementor
Excluding a plugin is the right call when its update needs a newer PHP version, when its changelog mentions a breaking change you have not prepared for, or when you simply want to watch it on staging first. Update the excluded ones later, one at a time, once you know the rest of the site is stable.
Step 3: Test after each batch
After each batch, check the site the way a visitor would. Load the homepage, a post, and one page that uses the plugins you just updated, such as the checkout page if you updated a shop plugin or a form page if you updated a form plugin. Then check the error log:
wp plugin list --update=available tail -n 50 /var/log/nginx/error.log
If the first command still shows plugins waiting, you know exactly which batch is left. If the log shows PHP fatal errors naming a plugin file, you know exactly which batch caused it. This is the whole advantage of batching: the suspect list is five plugins, not forty.
Turn maintenance mode on only if you expect visible breakage, and keep it brief. Most plugin updates finish in seconds, and a maintenance page that stays up for an hour costs more trust than the update saves:
wp maintenance-mode activate wp plugin update --all --exclude=woocommerce wp maintenance-mode deactivate
When an update breaks something: roll back fast
Find the bad plugin first. Deactivate the batch one plugin at a time until the error clears:
wp plugin deactivate suspect-plugin wp plugin deactivate next-plugin
Once you know which plugin it is, roll it back to the version that worked. WP-CLI can install a specific older version over the broken one:
wp plugin install broken-plugin --version=2.4.1 --force
Use the version number from your earlier wp plugin list output, or from the backup. After the rollback, verify the site loads, then check the plugin’s changelog and support forum for the reported problem before you try the update again. Sometimes the fix is a newer PHP version, sometimes a conflict with another plugin, and sometimes the plugin author ships a fix within a day. Waiting a day beats running a broken site.
If the site shows a white screen and you cannot tell which plugin did it, deactivate all plugins from the shell and switch them back on in small groups. That sounds drastic, but it takes minutes and it works when the dashboard is unreachable. The same approach fixes most cases covered in the white screen of death guide, which is worth reading before you need it.
Should you automate plugin updates?
WP-CLI makes it tempting to put a wp plugin update all command in a cron job and forget about it. Resist that for anything except the lowest-risk plugins. Auto-updates are fine for a small plugin with a long, stable history, and WordPress already auto-updates some plugins by default. But a cron job cannot read a changelog, cannot see that a major version changes the settings screen, and cannot test the checkout page afterwards.
A safer middle ground is a weekly routine, not full automation. Let a cron job email you the outdated list:
wp plugin list --update=available --fields=name,version,update_version
Then run the updates yourself in batches, in the morning, when you have time to fix a problem. For a quiet blog with few visitors, auto-updating minor versions is a reasonable trade. For a shop, a membership site, or anything with forms that collect money or leads, keep a human in the loop.
WordPress plugin updates command line checklist
Keep this short list next to your terminal until the routine is habit:
- Back up the database and files, and take a VPS snapshot if you can.
- List outdated plugins and read the changelogs of major jumps.
- Run a dry run to catch download or permission errors early.
- Update in batches of five or fewer, low-risk plugins first.
- Test the homepage, a post, and one key page after each batch.
- Roll back the single bad plugin with
wp plugin install --versioninstead of restoring the whole site. - Write down which plugins you excluded and why, and update them on staging first.
Bulk updates are not dangerous because plugins are dangerous. They are dangerous because updating forty things at once hides which one failed. WP-CLI gives you the tools to update everything and still know exactly what changed: a list before, a batch at a time, a test after each batch, and a one-command rollback when a single plugin misbehaves. Do it that way and you update WordPress plugins safely instead of gambling that forty changes at once survive the night.