Installing the command line push application | HCL Digital Experience
You can push files from a directory to the Script Application. You must first install the push application.
Before you begin
Procedure
- Obtain the compressed file sp_cmdln.zip.
Note: For pushing Script Portlets or Script Applications to portal with CF09 or a later Combined Cumulative Fix, you must obtain the command line utility that is provided with CF09 or later. The command line tool provided with HCL Script Portlet and earlier versions is not compatible with the new REST services provided by Script Application in CF09 and later releases.You can obtain that file by either of the following two ways:
- You can find the file sp_cmdln.zip in
the following directory:
- AIX®:
PortalServer_root/scriptingportlet/wp.scriptportlet.cmdln/bin/sp_cmdln.zip
- HP-UX:
PortalServer_root/scriptingportlet/wp.scriptportlet.cmdln/bin/sp_cmdln.zip
- IBM® i:
PortalServer_root/scriptingportlet/wp.scriptportlet.cmdln/bin/sp_cmdln.zip
- Linux™:
PortalServer_root/scriptingportlet/wp.scriptportlet.cmdln/bin/sp_cmdln.zip
- Solaris:
PortalServer_root/scriptingportlet/wp.scriptportlet.cmdln/bin/sp_cmdln.zip
- Windows™:
PortalServer_root\scriptingportlet\wp.scriptportlet.cmdln\bin\sp_cmdln.zip
- z/OS®:
PortalServer_root/scriptingportlet/wp.scriptportlet.cmdln/bin/sp_cmdln.zip
- AIX®:
- When the portal page is in Edit mode, you can download file sp_cmdln.zip from
the Download Command Line tool action in the Actions menu
of a Script Application. Note: Administrators can prevent the download of the compressed file by setting the following property to
false
:scriptportlet.actionmenu.AllowCmdlnDownload=false
in the Script Application configuration component. For details about how to do so, read Setting custom configuration properties for the Script Application.
- You can find the file sp_cmdln.zip in
the following directory:
- Extract sp_cmdln.zip.
- From the extracted directory, run sp.bat in Windows or sp.sh in Linux or OSX to verify that Java is working correctly.
- 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.
- 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.