You can create new communities from a command line using the SpawnCommunity
tool. You can find UNIX and Windows versions of this tool in the <ATG11dir>/Portal/PDK/ManifestLoader
folder.
To create a new community using the SpawnCommunity
tool:
Create a new community template using the Portal Administration, as described in the Using the Community Templates User Interface section.
Go to the Community Templates page and click the export link for the community template you want to use. This creates an XML file that represents the community template. You need to pass this XML file to the
SpawnCommunity
tool.Run the
SpawnCommunity
tool. The syntax and arguments of theSpawnCommunity
tool are described below.
A new community is created, taking its values from the community template. You can then edit the gears and pages of the new community as needed. Note that you can pass arguments to the SpawnCommunity
tool to override many of the parameters of the community template.
The SpawnCommunity
tool uses the following syntax:
SpawnCommunity.sh -templateCOMMUNITY_TEMPLATE
-nameCOMMUNITY_NAME
-url
COMMUNITY_URL <optional arguments>
SpawnCommunity Arguments
The SpawnCommunity
command takes the following arguments:
Argument | Description | Default Value |
---|---|---|
-template | The template XML file exported from the Portal Administration. | Required. Use the pathname of the template file, which can be either an absolute pathname or a pathname relative to the directory from which you run |
-name | The name of the new spawned community. | Required. No default. |
-url | The URL of the new spawned community. | Required. No default. |
-parentFolder | The ID of the parent folder for the spawned community. | The parent folder ID of community template |
-enabled | Is the new community enabled? One of | The enabled value of community template |
-description | Description text for the spawned community. | The description of the community template |
-membership | Membership request level for the spawned community. | Membership request level of community template. |
-pageTemplate | The ID of the page template for the spawned community. | The page template ID of community template. |
-style | The ID of the style for the spawned community. | The style ID of community template. |
-gearTemplate | The ID of the gear template for the spawned community. | The gear template ID of community template. |
-customization | The customization level for the spawned community. | The customization level of community template. |
-access | The access control level for the spawned community. | Integer. The access control level of the community template. |
-host | The hostname of the machine currently running you application server. If you do not specify this argument and the | Defaults to |
-port | The port for the RMI server on the currently running Oracle Commerce Platform server. | 8860 |
-cloneSharedGears | Should the spawned community clone shared gears, rather than refer to the original gears? | Boolean. Defaults to |