Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to run Smart-Updates, Auto-Updates & Core Updates for one or all WordPress instances via CLI?

 
applications extensionsbackupclihow tohttps

Question

How to run Smart-Updates, Auto-Updates & Core Updates for one or all WordPress instances via CLI?

Answer

# For Smart-Update

  1. Connect to a Plesk server via SSH

  2. List all WordPress instances:

    # plesk ext wp-toolkit --list

  3. Check status of Smart-Updates for a specific instance:

    # plesk ext wp-toolkit --smart-update -instance-id 1 -operation status

  4. Turn on Smart-Updates for specific instance:

    # plesk ext wp-toolkit --smart-update -instance-id 1 -operation enable

# Auto-Updates for themes and plugins

  1. Check status of auto-update for all themes for a specific instance:

    # plesk ext wp-toolkit --wp-cli -instance-id 1 -- theme auto-updates status -all

  2. Enable auto-update for all themes for a specific instance:

    # plesk ext wp-toolkit --wp-cli -instance-id 1 -- theme auto-updates enable -all

  3. Check status of auto-update for all plugins for a specific instance:

    # plesk ext wp-toolkit --wp-cli -instance-id 1 -- plugin auto-updates status -all

  4. Enable auto-update for all plugins specific for a instance:

    # plesk ext wp-toolkit --wp-cli -instance-id 1 -- plugin auto-updates enable -all

# WordPress Core Update

  1. Check core version for a specific WordPress Instance:

    # plesk ext wp-toolkit --wp-cli -instance-id 1 -- core check-update

  2. Update core for a specific WordPress Instance:

    # plesk ext wp-toolkit --wp-cli -instance-id 1 -- core update

# WordPress Core Auto-Update

The only way to do this currently is by editing the wp-config.php file and adding the following line:

define( 'WP_AUTO_UPDATE_CORE' , true );

# Check Smart Update status for all instances

Note: Running such a command/script can be dangerous as it will affect all WordPress instances. A snapshot or backup should be created prior to running this. Run the command against a single instance first to make sure the syntax and command is correct before running the script against all instances.

# plesk ext wp-toolkit --list | awk NF | awk '{print $1}' | awk '(NR>1)' | while read i; do plesk ext wp-toolkit --smart-update -instance-id $i -operation status; done

This command will check operation status for --smart-update on all instances.
This command can be edited to enable all instances by changing -operation status to -operation enable

Additional Information

  • See our Documentation on wp-toolkit CLI for Plesk Obsidian.

  • https://www.wpbeginner.com/wp-tutorials/how-to-enable-automatic-updates-in-wordpress-for-major-releases/

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

You Are Always Safe When You Have an Up-To-Date Plesk Backup

Read More »

SSL Certificates and Web Security – A Guide

Read More »

All You Need to Know About the Plesk WP Toolkit 4.10 Release

Read More »
Knowledge Base

A website is QUARANTINED in the Plesk WP Toolkit with no signs of malware

Read More »

WordPress update via Smart Update fails in Plesk: Smart Update was unable to correctly clone your website for further analysis

Read More »

 An operation fails in Plesk: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘X’ for key ‘PRIMARY’

Read More »

After updating to Plesk Obsidian 18.0.47 on Linux, blank page is shown instead of WP Toolkit menu

Read More »

Hosting Wiki

  • CLI
  • Server Redundancy
  • AMP
  • Bare Metal Server
  • Backup
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • PHP
  • Joomla! Toolkit
  • WP Toolkit
  • WordPress
  • Plesk
  • Web Server
  • DNS Server
  • SSH
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family