The create-service command will create a Grails service class for the given base name.


grails create-service book


Creates a service for the give base name. For example for a base name book a service called BookService will be created in the grails-app/services directory.

A service class encapsulates business logic and is delegated to by controllers to perform the core logic of a Grails application. For more information on tags refer to the section on Services in the user guide.

Note that this command is merely for convenience and you can also create services in your favorite text editor or IDE if you choose.


grails create-service [name]

Fired Events: