What could cause this error in grails 4 ? I'm using the CLI like this:
grails create-controller Book
Edit:
The exact error is
| Error Command not found create-controller
Did you mean: create-command or create-service or create-script?
In grails-app/conf/application.yml, the profile has to be rest-api (or similar) instead of base for the command to be available.