Installing the command line push application for IBM Script Portlet V 1.3

You can push files from a directory to the Script Portlet. You must first install the push application.

Before you begin

Verify that you have Java 1.6 or newer installed. Verify that the JAVA_HOME environment variable points to your Java installation. You can add that information in the bash_profile file. Alternatively, you can edit the batch or shell file to include a path to your Java directory.

Procedure

  1. Find sp_cmdline.zip in the compressed file that contains the Script Portlet PAA file.
  2. Extract sp_cmdline.zip.
  3. From the extracted directory, run sp.bat in Windows or sp.sh in Linux or OSX to verify that Java is working correctly.
  4. Set the default values in sp-config.json in the extracted folder. You can set server properties such as the URL, user name, password, and wcmSiteArea properties in this file. Those defaults are used anytime you run the sp push command.
  5. Add the extracted folder to the system path so that you can run sp push from any application folder. If you add the folder to the system path, you do not need the argument that specifies the application root folder.