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
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
推荐阅读
-
Grails命令备忘录 博客分类: GROOVY GrailsDojoquartzGroovySwing
-
Grails 0.5发布在即,我关注的部分新特性 博客分类: groovy/grails GrailsHibernate.netHTML
-
Groovy 1.1-beta-1发布,加入对annotations的支持 博客分类: Groovy&Grails GroovyGrailsScalaJavaRuby
-
grails 从0.4升级到0.5snapshot 要当心! 博客分类: groovy/grails GrailsRESTTomcat
-
Grails批改默认启动端口 博客分类: grails和groovy grails企业应用REST
-
精通 Grails: 用 Groovy 服务器页面(GSP)改变视图 博客分类: grails和groovy grailsgroovy框架web
-
精通 Grails: 测试 Grails 应用程序 博客分类: grails和groovy单元测试和集成测试 grails单元测试框架
-
grails 2.4 scaffolding模板 博客分类: groovy grailsjava
-
Grails的数据库相关开发 博客分类: grails和groovy数据库 grailsgroovy单元测试框架
-
grails 多数据源相关配置 博客分类: Grails&Groovy