grails <<command name>> <<options>>*
Command Line Usage
Grails incorporates a CLI and also uses the powerful build system Gradle.
The basic usage scenario is:
When running Gradle tasks you can specify the environment that the command executes in with an optional grails.env parameter, either with one of the built-in environment names:
./gradlew bootRun -Dgrails.env=dev
./gradlew bootRun -Dgrails.env=test
./gradlew bootRun -Dgrails.env=prod
./gradlew bootRun -Dgrails.env=custom
Refer to the user guide section on The Command Line for more information.