WordPress CLI: wp core version
WordPress CLI
wp core version
– Display the WordPress version.
OPTIONS
- [–extra]
- Show extended version information.
Command line
It’s very simple and easy to find the WordPress version from command line. Run the following command from the public_html (or the directory where you installed the WP) of your domain:
# grep wp_version wp-includes/version.php
Please see the sample output below:
USER@SERVER [user/sitedir]# grep wp_version wp-includes/version.php * @global string $wp_version $wp_version = '4.4.2';