---
title: "Update WordPress Using WP-CLI"
description: "WP-CLI is useful for managing your WordPress Hosting website(s) from the command line. You can use the wp core command to download, install, delete, and update WordPress. In this guide, you will..."
url: https://www.inmotionhosting.com/support/edu/wordpress/wp-cli/update-wordpress-using-wp-cli/
date: 2017-12-16
modified: 2023-07-07
author: "InMotion Hosting Contributor"
categories: ["WP-CLI"]
type: post
lang: en
---

# Update WordPress Using WP-CLI

![](https://www.inmotionhosting.com/support/wp-content/uploads/2023/07/Update-WP-using-WP-CLI-1024x538.png)

**WP-CLI** is useful for managing your [WordPress Hosting](https://www.inmotionhosting.com/wordpress-hosting) website(s) from the command line. You can use the *wp core* command to download, install, delete, and **update WordPress**. In this guide, you will learn how to use WP-CLI to check for an update and update WordPress from the command line.

## Check for Updates

1. [SSH into your server](/support/server/ssh/shared-reseller-ssh/) as the cPanel user that owns the website you are installing WordPress on.
2. Use the cd command to switch to the [document root directory of your website](/support/website/where-to-upload-files/). Example: cd **public_html/my_website** **NOTE: **Be sure to replace **public_html/my_website** with the actual path to the document root directory of your website.
3. Run the following command to check if there is an available update for WordPress. wp core check-update

The output from that command will either indicate the available updates:

+---------+-------------+-------------------------------------------------------------+
| version | update_type | package_url |
+---------+-------------+-------------------------------------------------------------+
| #.#.# | minor | https://downloads.wordpress.org/release/wordpress-#.#.#.zip |
| #.#.# | major | https://downloads.wordpress.org/release/wordpress-#.#.#.zip |
+---------+-------------+-------------------------------------------------------------+

or else, the output will indicate that no update is available:

Success: WordPress is at the latest version.

## Update WordPress

1. [SSH into your server](/support/server/ssh/shared-reseller-ssh/) as the cPanel user that owns the website you are installing WordPress on.
2. Use the cd command to switch to the [document root directory of your website](/support/website/where-to-upload-files/). Example: cd **public_html/my_website** **NOTE: **Be sure to replace **public_html/my_website** with the actual path to the document root directory of your website.
3. Run the following command to update WordPress: wp core update The following output confirms the update was successful: Updating to version #.#.# (en_US)... Downloading update from https://downloads.wordpress.org/release/wordpress-#.#.#-no-content.zip... Unpacking the update... Cleaning up files... No files found that need cleaned up. Success: WordPress updated successfully.

Congratulations! You now know how to **update WordPress** from the command line, using the **WP-CLI core command**. 

Learn more about [WP-CLI](https://www.inmotionhosting.com/support/edu/wordpress/wp-cli/), the command-line interface for WordPress, and how to streamline your WordPress maintenance workflows!
