Is there ant way to check the WordPress version from the command-line?
Checking version is an important measure for a CMS website owner. WordPress is one of the commonly using CMS (Content Management System) nowadays. From the WP dash board we can easily check the current version installed. You can check this from “Updates” section under dashboard.
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:
root@vps [/home/user1/public_html]# grep wp_version wp-includes/version.php * @global string $wp_version $wp_version = '3.8';
That’s it.. 🙂