How to update the JHipster project after updating JHipster generator?

JHipster now has a page on Upgrading an application.

https://jhipster.github.io/upgrading-an-application/

TL;DR

Running the upgrade sub-generator

Go into the application’s root directory:

cd myapplication/

To upgrade your application, type:

yo jhipster:upgrade

If you want to run the upgrade sub-generator even if no new JHipster version is available, type:

yo jhipster:upgrade --force


If you want to update all entities you need to run

yo jhipster --with-entities

from the root of your project


JHipster developers replied over twitter saying that yo jhipster has to be executed at the project root folder.


Following [jhipster releases] (https://jhipster.github.io/2015/05/31/jhipster-release-2.14.2.html): How to upgrade

Update your version of JHipster with:

npm update -g generator-jhipster

And then you can update your project when you run again

yo jhipster

You can also update your entities by running again the entity sub-generator, for example if your entity is named Foo

yo jhipster:entity Foo