Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I know which jhipster version I am using?

Tags:

jhipster

I need to duplicate a jhipster project. Since I have created this project I have updated jhipster versions. I want to duplicate the project with the same jhipster version of the first project.

How do I know which version of Jhipster I am using on my first application?

like image 922
user1260928 Avatar asked Dec 14 '15 10:12

user1260928


People also ask

How do I know if JHipster is installed?

When you run yo jhipster this is written in yellow in the welcome message. This prints out the version installed on the system, not the version used to generate the project, though.


2 Answers

The best place to find this information seems to be the first line of ./Gruntfile.js:

// Generated on 2015-12-14 using generator-jhipster 2.25.0

The identifier of the version used to generate the project can be found in a number of other places as well:

➜   grep -R '2\.25\.0' . # current version of jhipster is 2.25.0

./Gruntfile.js:// Generated on 2015-12-14 using generator-jhipster 2.25.0
./node_modules/connect/History.md:2.25.0 / 2014-08-05
./node_modules/generator-jhipster/package.json:      "[email protected]",
./node_modules/generator-jhipster/package.json:  "_from": "[email protected]",
./node_modules/generator-jhipster/package.json:  "_id": "[email protected]",
./node_modules/generator-jhipster/package.json:    "raw": "[email protected]",
./node_modules/generator-jhipster/package.json:    "rawSpec": "2.25.0",
./node_modules/generator-jhipster/package.json:    "spec": "2.25.0",
./node_modules/generator-jhipster/package.json:  "_resolved": "https://registry.npmjs.org/generator-jhipster/-/generator-jhipster-2.25.0.tgz",
./node_modules/generator-jhipster/package.json:  "_spec": "[email protected]",
./node_modules/generator-jhipster/package.json:    "tarball": "http://registry.npmjs.org/generator-jhipster/-/generator-jhipster-2.25.0.tgz"
./node_modules/generator-jhipster/package.json:  "version": "2.25.0"
./node_modules/phantomjs/node_modules/request/CHANGELOG.md:### v2.25.0 (2013/07/23 21:51 +00:00)
./node_modules/phantomjs/node_modules/request/CHANGELOG.md:- [828f12a](https://github.com/mikeal/request/commit/828f12a1ae0f187deee4d531b2eaf7531169aaf2) 2.25.0 (@mikeal)
./package.json:    "generator-jhipster": "2.25.0",
like image 102
kryger Avatar answered Oct 07 '22 14:10

kryger


Ask it jhipster directly, from within your project folder.

jhipster --version

Here's my output

salathiel@salathiel-genese-pc:~/path/to/project$ jhipster --version
Using JHipster version installed locally in current project's node_modules
4.14.3
like image 9
Salathiel Genèse Avatar answered Oct 07 '22 13:10

Salathiel Genèse