check cakephp version

cakephp

To check the version of CakePHP that is installed on your system, you can use the cake shell command.

Open a terminal window and navigate to your CakePHP application’s root directory. Then, run the following command:

bin/cake

This will display a list of available commands, along with the version of CakePHP that is installed. The version number is displayed in the first line of the output, after the CakePHP keyword.

For example:

$ bin/cake
CakePHP 3.9.4 Console
-------------------------------
[...]

This indicates that CakePHP 3.9.4 is installed on the system.

Alternatively, you can check the version of CakePHP by looking at the composer.json file in your application’s root directory. The “cakephp/cakephp” key in the require section of the file will contain the version of CakePHP that is installed.

For example:

"require": {
  "php": ">=7.2",
  "cakephp/cakephp": "3.9.*",
  "[...]"
}

This indicates that CakePHP 3.9 is installed on the system. The * character indicates that any version of the 3.9 branch is acceptable.