The PublishStore script allows you to publish store archives from a command line.
Syntax
Parameter values
- -svr
- The fully qualified TCP/IP name of your WebSphere Commerce Server.
- -userid
- The WebSphere Commerce Site Administrator's user ID. You must have Site Administrator access to publish a store archive.
- -pwd
- The WebSphere Commerce Site Administrator's password.
- -sar
- The full path of the store archive on the host machine, for example,c:\wcs\samplestores\ConsumerDirect\ConsumerDirect.sar
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 logs on to the running WebSphere Commerce Server (svr) using the user ID (userid) and password (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.