The PublishStore script allows you to publish store archives from a command line.
Command structure
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: 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:
./publishstore.sh -svr myhost -userid wcsadmin -pwd wcsadmin -sar c:\wcs\samplestores\ConsumerDirect\ConsumerDirect.sar
publishstore -svr myhost -userid wcsadmin -pwd wcsadmin -sar c:\wcs\samplestores\ConsumerDirect\ConsumerDirect.sar
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:
- Creates a session and logons to the running WebSphere Commerce Server (svr) using userid USERID and pwd parameters PWD
- Issues a request to publish the store archive (sar).
- Displays the scheduled publish job number.
- Polls the server and displays the status of the publishing job.