欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Grails命令备忘录 博客分类: GROOVY GrailsDojoquartzGroovySwing

程序员文章站 2024-03-20 09:02:52
...
Grails是好,挺爽的,但命令也是贼多,不知道的人,还不知道上哪看呢,其实在命令行输入"grails help"就会将所有的命令列出来,现我摘抄出来,方便自己也方便广大博友。。。。



Usage (optionals marked with *):
grails [environment]* [target] [arguments]*

Examples:
grails dev run-app
grails create-app books
Available Targets:
grails bootstrap -- This task will load the Grails application context into the command window with a variable named 'ctx'
grails bug-report -- Creates a ZIP containing source artifacts for reporting bugs
grails clean -- Cleans a Grails project
grails compile -- Performs compilation on any source files (Java or Groovy) in the 'src' tree
grails console -- Load the Grails interactive Swing console
grails create-app -- Creates a Grails project, including the necessary directory structure and commons files
grails create-controller -- Creates a new controller
grails create-domain-class -- Creates a new domain class
grails create-job -- Creates a new Quartz scheduled job
grails create-plugin -- Creates a Grails plug-in project, including the necessary directory structure and commons files
grails create-script -- Creates a Grails Gant Script
grails create-service -- Creates a new service class
grails create-tag-lib -- Creates a new tag library
grails create-test-suite -- Creates a new Grails test suite
grails generate-all -- Generates a CRUD interface (contoroller + views) for a domain class
grails generate-controller -- Generates a CRUD controller for a specified domain class
grails generate-views -- Generates the CRUD views for a specified domain class
grails generate-webtest -- Generates a Canoo WebTest (functional test) from a Grails domain class
grails help -- Prints out the help for each script
grails init -- Initializes a Grails application. Warning: This task will overwrite artifacts,use the 'upgrade' task for upgrades.
grails install-dojo -- Installs the Dojo toolkit. An advanced Javascript library.
grails install-plugin -- Installs a plug-in for the given URL or name and version
grails install-templates -- Installs the artifact and scaffolding templates
grails package -- Packages a Grails application. Note: To create WAR use 'grails war'
grails package-plugin -- Packages a Grails plugin into a zip for distribution
grails package-plugins -- Performs packaging of Grails plugins for when they are distributed as part of a WAR
grails run-app -- Run's a Grails application in Jetty
grails run-webtest -- Run's all of the Web tests against a Grails application
grails shell -- Load the Grails interactive shell
grails test-app -- Run a Grails applications unit tests
grails upgrade -- Upgrades a Grails application from a previous version of Grails
grails war -- Creates a WAR archive