这上面的英文很好理解!
描述:
bug-report (since 0.4) Generates a ZIP containing your source artifacts for attaching to a JIRA issue
clean (清除当前应用的tmp目录)
create-app Creates a new Grails application(创建一个新的grails应用)
create-controller Convenience target for creating a controller(创建一个grails应用的controller)
create-domain-class Convenience target for creating domain classes
create-data-source Convenience target for creating data sources
create-job Convenience target for creating jobs
create-service Convenience target for creating services
create-taglib Convenience target for creating tag libraries
create-test-suite Convenience target for creating test suites
create-webtest Convenience target for creating functional web tests
generate-controller Generates a controller for a specified domain class
generate-views Generates CRUD views for a specified domain class
generate-all Generates both a controller and the views for a specified domain class
get-dependencies Get project's dependencies with Ivy
install-ivy Install ivy dependency resolution tool
install-templates Installs the artifact and scaffolding templates
run-app Runs a grails app using the default Jetty container. The default http port is 8080. This can be customised by appending -Dserver.port=<port number> to the command line
run-app-https (since 0.6) Runs a grails app using the default Jetty container with a https listener. The default https port is 8443. This can be customised by appending -Dserver.port.https=<port number> to the command line
run-webtest Runs the functional web tests contained within the app
set-version (since 0.5) Set the version of your application, i.e. grails set-version 1.0.4
stats (since 0.5) Output some basic code metrics about your project
test-app Runs the unit tests contained within the app, or a single named test passed as the last argument
war Creates a JEE Web Application Archive (WAR) file from the current grails app
upgrade Upgrade/Downgrade an existing project to a different Grails version
Options can be given in the format -Dname=value
name value
server.port the port number to start the server on, default:8080
grails.upgrade.warning set if user input is require or not while upgrading a project, default:y
如:grails -Dserver.port=9090 run-app,表示以9090端口运行这个应用