This appendix was automatically built from Roo 1.0.0.RC3 [rev 401].
Commands are listed in alphabetic order, and are shown in monospaced font with any mandatory options you must specify when using the command. Most commands accept a large number of options, and all of the possible options for each command are presented in this appendix.
Component Commands are contained in org.springframework.roo.addon.surf.component.ComponentCommands.
Adds a new Surf component to your Surf project.
surf component create --page --region --url
Specifies page id of the component to be created.
Specifies region id of the component to be created.
Specifies url of the component to be created.
Specifies additonal options for the component to be created.
Lists Surf components in your project.
surf component list
Specifies scope of the components you want to list. Available options are page, template and component.
Specifies page id for the page scoped components you want to list.
Specifies template id for the template scoped components you want to list.
Creates a new property for Surf component.
surf component property create --id --properties
Specifies component instance id of the new component resource.
Specifies list of the new component properties. The input format is name1:val1|name22:val2.
Creates a new resource for the Surf component.
surf component resource create --id --content
Specifies component instance id of the new component resource.
Specifies attribute list for the new component resource. The input format is attr1:val1|attr2:val2.
Specifies content body of the new component resource
Content Commands are contained in org.springframework.roo.addon.surf.content.ContentCommands.
Creates a new Surf content association
surf content association create --source --destination
Specifies id of the content association.
Specifies content type of the association.
Specifies page id or component id that will be used for rendering the content type.
Specifies type of the association, i.e. page, etc.
Page Commands are contained in org.springframework.roo.addon.surf.page.PageCommands.
Adds a new Surf page association between two pages.
surf page association create --sourceId --destId
Specifies id of the source page.
Specifies id of the destination page.
Speficies optional name for the association.
Speficies page association type. If not speficied, the default is child.
Lists associated pages of the page with a specified id.
surf page association list --sourceId
Specifies id of the source page.
Adds a new page to your Surf project.
surf page create --id
Specifies id of the page to be created e.g. test, test1
Specifies path of the page to be created e.g. pages, mypages
Specifies template instance id to be used.
Specifies template id to be used.
Specifies list of urls that the new page to be mapped to. Urls should be separated by comma.
Specifies tile of the page to be created.
Report Commands are contained in org.springframework.roo.addon.surf.report.ReportCommands.
Site Commands are contained in org.springframework.roo.addon.surf.site.SiteCommands.
Surf Commands are contained in org.springframework.roo.addon.surf.SurfCommands.
Installs a Surf addon into your Surf project.
surf addon install --id
Specifies id of the addon to be installed.
Template Commands are contained in org.springframework.roo.addon.surf.template.TemplateCommands.
Creates a template (ftl) at the specified path.
surf template create --path
Specifies path of the new template.
Creates a Template Instance with the given id that maps to the given template path.
surf template instance create --id --template
Specifies id of the new template instance.
Specifies path of the new template instance.
Specifies template for the new template instance.
Lists all surf template instances.
surf template instance list
This command does not accept any options.
Lists all Surf templates.
surf template list
This command does not accept any options.