Skip to content

Instantly share code, notes, and snippets.

@62mkv
Last active March 25, 2021 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 62mkv/1a2c4b0da3e6147f6eb008a5fe895283 to your computer and use it in GitHub Desktop.
Save 62mkv/1a2c4b0da3e6147f6eb008a5fe895283 to your computer and use it in GitHub Desktop.
useful JHipster commands

Useful JHipster commands:

How to ensure that your locally developed JHipster is used:

  • remove globally installed "regular" JHipster npm unlink -g generator-jhipster
  • in the "generator-jhipster" folder: npm link (this will link this local folder to global npm node_modules)
  • in the "blueprint" folder: npm link generator-jhipster (this way your locally developed blueprint will also use your locally developed JHipster)
  • in the "blueprint" folder: npm link
  • in the "app" folder: npm link generator-jhipster; npm link <your-blueprint>
  • now, when you use jhipster --blueprints <your-blueprint>, it will use "double-linked" JHipster and your blueprint, which is important
  • if any of the steps is missed, you could end up using "upstream" JHipster and struggling to understand why

(Re)generating entity code:

Simple: jhipster entity <entity-name>

More advanced examples:

When you changed JDL for entity and want to only re-generate given entity: jhipster jdl --json-only --skip-install --ignore-application application.jdl

and then: jhipster entity --regenerate --skip-install <entity-name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment