First of all, locate your installation of WP-CLI.
If you’re using Composer you can list all globally installed packages on the command line like this:
composer global show
Then update the WP-CLI composer package:
composer global update wp-cli/wp-cli
If you’re using Homebrew, you can list all installed packages on the command line like this:
brew list
And update the package:
brew upgrade wp-cli
After that you should be able to upgrade to the next version of WP-CLI via the built-in command:
wp cli update
In return, you’ll get a prompt like this:
You have version 1.4.1. Would you like to update to 1.5.0? [y/n]
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v1.5.0...
New version works. Proceeding to replace.
Success: Updated WP-CLI to 1.5.0.
Related Posts:
- WP-CLI not recognizing commercial plugin updates
- Using wp-cli to Update WP Networks / Multisite from 3.5.1 to 3.8
- wp core update not working anymore
- WP-CLI command to update all plugins and core fails when executed from cron
- Jetpack Upgrade fails with WP CLI [closed]
- A shorter way to automatically update WordPress?
- Admin user can’t update WP
- Why are there updates for obsolete WordPress versions?
- How should I structure a WP website project using git and updating from WP dashboard?
- After updating WP keeps nagging about a newer version. Why?
- How can I manually upgrade translations?
- Update to older wordpress version from admin?
- Prevent/Disable Automatic Update Check
- Git Deploying – Disabling plugin/theme installation/update on remote?
- How to use command ‘wp post create’ in wp-cli properly?
- Update WordPress automatically on its own
- How long does it take for theme / plugin automatic updates to initiate?
- Generate WP-CLI @alias for each site on multisite
- Can’t preview drafts after upgrade to 4.0!
- Find out if there is a available core update?
- How do I set and list page_template with wpcli?
- Why won’t my site automatically apply updates after upgrade to 3.7?
- “You have the latest version of WordPress. Future security updates will be applied automatically.”
- WordPress with composer, how to handle updates?
- Reverting from a newer version of WordPress to an older version
- How to automatically update on localhost after editing files
- After updating wordpress 4.5 my homepage and images not displaying
- Show last time WordPress site was updated / modified
- How can I prevent a plugin from searching for updates?
- WordPress load-scripts.php encoding issue
- Plugin for automated upgrade of WordPress core and it’s plugins?
- Why are the automatic updates to WordPress behind the version my site is on?
- update Semiologic?
- How to change a post attribute to homepage using WP CLI?
- Unable to update wordpress
- Still Another update is currently in progress by updating WordPress 5.3
- Is there any workaround to a core update still showing after core update if language set to anything other than US English
- Prevent wordpress from updating language files
- Possible to stay on Version 4?
- Shortest way to install WP-CLI
- wordpress update will overwrite files changes?
- Updating beyond WordPress 4.2.1 yields “allowed memory size exhausted”
- “The package could not be installed” when updating plugins, themes, and core files on WampServer
- Where can I find the corrent version of my wordpress blog?
- WP Cli will not execute on Windows
- 4.9.5 broke site behind load balancer, forwards to localhost [closed]
- WordPress 3.8.1 update error
- Updating WordPress core with zero downtime – I mean zero
- What file(s) in core control automatic background updates?
- How can I quickly get a system showing the “Uncaught Error: Class ‘WP_Site_Health’ not found in” up and running again?
- Can’t upgrade WP 5.6 to 5.6.1: version-current.php is missing
- WordPress and plugins can’t update (“inconsistent file permissions” error)?
- Update WordPress – Another update is currently in progress
- Errors when updating plugin through the WordPress plugin repository
- Is there a way to schedule automatic WordPress core updates?
- WordPress updates being blocked by proxy
- Which directory should be writable to update wordpress?
- Increased memory usage after updating to wordpress 4.3
- How much maintenance is required to run a WordPress server?
- Is it safe to update from 2.6.2 to the newest version?
- Can anything go wrong if I let users change their usernames?
- Where in the backend can I get information about the current WordPress version I am using?
- Where can I see all changes for a new WordPress version?
- wp-cli for Creating page-template
- check if WordPress website has updates remotely
- Updating WP 3.9.5 without destroying my website
- WordPress updates
- is wpdb->replace() already sanitized?
- Cannot upgrade anything in vps install (migrated wp)
- Where does wordpress gets its core and plugin updates
- I tried updating my Live wordpress site to the latest wordpress version (v4.7) and i encountered some issues
- What do WordPress auto updates include?
- How to keep cache files after plugin update?
- Can’t update WordPress 4.0
- Theme my login and update user meta
- why does installer/update screens not progress on some webhosts?
- Avoid removal of a file on plugin update
- How to modify last posts block without losing modification on next WP update
- Disabling forced FTP credentials for any updates
- mystery checkbox in comments area
- How to get the date of last updated post or page and put it in the footer
- Updates page not showing formating
- After WooCommerce-Update fucntion not working anymore
- Plugins download & install fine, wordpress update fails
- How to allow theme update downloads to WordPress installs only?
- FS method direct on NGINX
- WordPress Auto Updates
- Core update of 4.2.3 changes all link to https [duplicate]
- Error on update translation
- Not able to Update wordpress to 4.0
- update post meta front end
- Custom message when wordpress updates are available
- WordPress Updates 3.5.2 to 3.8 Any Problem? [duplicate]
- How can I upgrade wordpress with manual?
- disk was full but wordpress still having issues
- Manually updating WordPress files
- Hook or function to check if performing a WP Core update?
- How to update WordPress plugins properly using git?
- add_editor_style not working after upgrade to WP v 6.2
- WordPress is updating only patch version and not minor