Get the latest WordPress version from the API
get latest wordpress version command line | is wordpress up to date | parse curl json output with jq | jq | curl | wordpress | jsoncurl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r '.offers[0].version'Fetches the version check from api.wordpress.org and prints only the version number of the first offer, which is the current stable release. Together with wp core version, this quickly shows whether an installation is lagging behind. It is also an example of how JSON from curl can be parsed directly with jq.
Note: The -s option suppresses curl’s progress meter, which would otherwise clutter the output.
Also searched as
- get latest wordpress version command line
- is wordpress up to date
- parse curl json output with jq