PublishStore command

The PublishStore script allows you to publish store archives from a command line.

Command structure

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, PublishStore  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

-svr
The fully qualified TCP/IP name of your WebSphere Commerce Server.
-userId
The user ID for the site administrator. You must have Site Administrator access to publish a store archive.
-pwd
is site administrator's password for WebSphere Commerce.
-sar
is the full path of the store archive on the host machine. For example,c:\wcs\samplestores\ConsumerDirect\ConsumerDirect.sar

Note:AIXiSeriesSun Solaris Operating EnvironmentLinux When using the command publishstore, use publishstore.sh.

Example

The following example shows you how to use the command to publish a store archive from the command line:

Behavior

The PublishStore script allows you to publish a store archive from a command line. Publish uses the default values for the parameters contained in the store archive. The PublishStore script does the following: