| layout | default |
|---|---|
| title | wp cli check-update |
| display_global_parameters | true |
wp cli check-update - Check for update via Github API. Returns the available versions if there are updates, or empty if no update available.
Quick links: Github issues
[--patch] : Only list patch updates
[--minor] : Only list minor updates
[--major] : Only list major updates
[--field=<field>] : Prints the value of a single field for each update.
[--fields=<fields>] : Limit the output to specific object fields. Defaults to version,update_type,package_url.
[--format=<format>] : Render output in a particular format. --- default: table options:
- table
- csv
- json
- count
- yaml ---
# Check for update
$ wp cli check-update
Success: WP-CLI is at the latest version.
# Check for update and new version is available
$ wp cli check-update
+---------+-------------+-------------------------------------------------------------------------------+
| version | update_type | package_url |
+---------+-------------+-------------------------------------------------------------------------------+
| 0.23.1 | patch | https://github.com/wp-cli/wp-cli/releases/download/v0.23.1/wp-cli-0.23.1.phar |
+---------+-------------+-------------------------------------------------------------------------------+