WordPress Ajuda

Run updates in WordPress with WP-CLI

WP-CLI is a command line tool that helps you perform different actions on your WordPress site. If you're comfortable with using SSH commands, you'll notice that WP-CLI has simplified commands created for WordPress sites. Here's how you can update WordPress, plugins, and themes with commands available in WP-CLI.

Warning: You should always back up your site before running any updates.
Required: You'll need the following to complete these steps:
Note: If you have a VPS or DED Server, you need to install WP-CLI before you can start using it. WP-CLI is not available on our Windows Hosting plans.
  1. Connect to your hosting account with SSH.
  2. Use the bash command ls to list files and folders, and cd and ../ to move through directories until you're in the directory with your WordPress files.
  3. Enter the following commands to run updates:
    • To update WordPress core:
      wp core update
      Note: Managed WordPress plans run on the latest version of WordPress. Anytime there's an update, we install if for you automatically.
    • To update one plugin:
      wp plugin update plugin-name
      In the code above, replace plugin-name with the actual name of the plugin you want to update.
    • To update all plugins:
      wp plugin update --all
    • To update one theme:
      wp theme update theme-name
      In the code above, replace theme-name with the actual name of the theme you want to update.
    • To update all themes:
      wp theme update --all
  4. After you see the success message, visit your site in a browser and check for errors. For any errors you find, check your plugin or theme developer’s documentation.

For security reasons, we recommend keeping WordPress, plugins, and themes up to date.

More info