Table of contents
Get the industry’s fastest hosting for WordPress ◦ 99.999% uptime
◦ Comprehensive security
◦ 24/7 support

WordPress GuideWP-CLI → Automatic Updates

WordPress automatic updates for plugins & themes

Want to use the command line to enable and disable WordPress automatic updates for plugins/themes? Learn how to use the WP-CLI tool to manage auto updates!

How to enable & disable WordPress automatic updates for plugins & themes using WP-CLI

WP-CLI is a command-line tool for managing your WordPress installations.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

Prerequisites

To start, log in to your website server using you4 SSH credentials via the SSH client. Once in, make sure you’re in the valid directory, and in this case, we’ll need to be in the directory of your WordPress installation:

If you can see your WordPress configuration files listed, you’re in the right place: 

WordPress automatic updates for plugins

Detailed information about the command we’re going to use for this can be found in the wp plugin auto-updates <command> documentation, but you can also always get help directly in the command line:

To begin with, let’s start by checking the status of the WordPress automatic updates for all our plugins with the following command:

However, if you wish to check the status of WordPress automatic updates for some particular plugin, you can specify it in the command like this:

Now, if we would like to enable WordPress automatic updates for some particular plugin, we can do it like this:

And, in case we decide to enable the WordPress automatic updates for all our plugins, we can also do it with a single command:

Now, if we change our mind and want to disable automatic updates for a single plugin or for all of them, we can easily do that with WP-CLI as well:

WordPress automatic updates for themes

Similar to the previous command, we can also get help on how to use the command directly in the command line, or, if you prefer, you can open up the wp theme auto-updates <command> documentation as a guide.

The command usage is quite similar to the previously used one, and to check the status of WordPress automatic updates for all our themes, we can use the following command:

If you would like to check are automatic updates enabled for some specific theme, you can do it by specifying the theme name in the command like this:

To change the status of automatic updates and enable them, for example, for the twentynineteen theme, use this command:

But if you would like to enable the automatic updates for all the themes you have, you can do that as well:

Of course, if you wish to disable automatic updates for one theme or for all of them, you can accomplish that with WP-CLI:

Additional resources

What is WordPress? →

A complete beginner’s guide—from use cases, to basics, to how to get started

Rollback a plugin or theme using WP-CLI →

In this article, we’ll be running through some valuable commands for rolling back your site.

How to integrate WordPress and Slack →

If your org uses Slack and WordPress, there are several ways you can tie them together.