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?
- WP-CLI command to update plugins and core fails in crontab?
- Get rid of Another update is currently in progress
- What is your best practice to execute one-time scripts?
- 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?
- No CSS being loaded on backend
- Enable update notification, disable updates
- Set custom messages for post update/save
- After updating WP keeps nagging about a newer version. Why?
- How can I manually upgrade translations?
- Automating the Backup Process (30+ websites)
- wp-cli displays php notices when display errors off
- WordPress 3.9 Database Update Infinite Loop
- Update to older wordpress version from admin?
- Real automated and unattended wordpress upgrade including plugins
- Prevent/Disable Automatic Update Check
- Auto-updating WordPress from a local zip file
- Permissions to get autoupdate to work
- Disable requests to api.wordpress.org
- Git Deploying – Disabling plugin/theme installation/update on remote?
- Why can’t I update username through WordPress API?
- How to use command ‘wp post create’ in wp-cli properly?
- Does set_transient() overwrite/update transient option with same key?
- Permissions to wp-content folder in Windows Server 2012
- Why is Google Webmaster Tools telling me to update WordPress
- Update, add, remove plugins, themes or wordpress behind load balancer
- Update WordPress automatically on its own
- How to force function to run as the last one when saving the post?
- git and local wordpress: how to handle wordpress updates?
- Block updates by Server
- WordPress 5.5 AutoUpdate schedule
- 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?
- WordPress Version 5 – Another update is currently in progress
- register_activation_hook and updating
- How do I set and list page_template with wpcli?
- Why won’t my site automatically apply updates after upgrade to 3.7?
- What are the details for function argument wp_update_plugin()
- Check if any users are logged in before running update
- “You have the latest version of WordPress. Future security updates will be applied automatically.”
- How do I update a custom theme
- WordPress with composer, how to handle updates?
- How do I pass an array as an argument to a WP-CLI command?
- Changing plugin slug with update
- Necessary user, group and permissions for core updates
- Reverting from a newer version of WordPress to an older version
- How to automatically update on localhost after editing files
- Update Failed: There has been a critical error on your website
- After updating wordpress 4.5 my homepage and images not displaying
- How to notify my plugin users about new version releases?
- Show last time WordPress site was updated / modified
- How can I prevent a plugin from searching for updates?
- WordPress load-scripts.php encoding issue
- Can’t update WordPress, need to reboot the VPS
- Plugin for automated upgrade of WordPress core and it’s plugins?
- Deploying Updated or New Plugins That Modify the wp_options Table
- Website not updating – no cache plugins active!
- How Can I setup WP CLI on Windows development machine running AMPPS?
- How to disable XML-RPC from Linux command-line in a total way?
- Why are the automatic updates to WordPress behind the version my site is on?
- update Semiologic?
- What are the properties of $item passed in the auto_update_{$type} filter?
- Good methodology for upgrading a large/complex sites?
- Upgrading themes never works
- Why does One Click Update fail on localhost using FTP with 777 permissions on site files?
- How can the temporary update directory be changed?
- How to change a post attribute to homepage using WP CLI?
- Unable to update wordpress
- Auto backup before automatic WordPress updates
- Still Another update is currently in progress by updating WordPress 5.3
- WordPress not showing upgrade to latest version
- Is there any workaround to a core update still showing after core update if language set to anything other than US English
- Why does WordPress 4.2.2 require FTP to update?
- Prevent wordpress from updating language files
- Updating client websites on a regular basis
- Why won’t WordPress on localhost find updates?
- How to do an event when any user updates their profile?
- Some wp-admin folder file deleted when WordPress upgrade
- Should I upgrade?
- Possible to stay on Version 4?
- Shortest way to install WP-CLI
- wordpress update will overwrite files changes?
- How to display user’s nickname by default instead of username
- Apply a tag to every images ‘Link Rel’
- Worpdress update another update is currently in progress
- Download failed cURL error 7: . Can’t update anything
- Updating beyond WordPress 4.2.1 yields “allowed memory size exhausted”
- Upgrading from 3.5.2 to 3.9.1
- “The package could not be installed” when updating plugins, themes, and core files on WampServer
- Check for files and database integrity
- Where can I find the corrent version of my wordpress blog?