[ionic-framework] How to get the version of ionic framework?

In the terminal following command returns the version:

'ionic version' or 'ionic -v'

returned

'3.2.0'

The above is the CLI version. Go to the project folder and use the code below like scw's answer.

$ cd ionic-project
$ ionic info
? Gathering environment info - done!

Ionic:

   ionic (Ionic CLI)  : 4.2.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic 5.2.7, cordova-plugin-ionic-webview 2.2.5, (and 15 other plugins)

System:

   NodeJS : v8.12.0 (/usr/local/bin/node)
   npm    : 6.4.1
   OS     : OS X Yosemite