Grails — Running bootstrap with Grails Console
you want to test or check your domain model after setting your environment or creating some data on the bootStrap:
How to run the bootstrap from Grails console and set the ApplicationContext and the grailsApplication