Generating and Uploading App Files Using the Command Line Interface
Use the Hybrid SDK (Kapsel) command line interface (CLI) to package the app into a ZIP file and upload it to the SAP Mobile Platform Server.
- Open a command prompt window, or terminal, and navigate to the folder that contains the Hybrid
SDK (Kapsel) CLI. On Windows:SDK_HOME\MobileSDK3\KapselSDK\cliOn Mac:~SDK_HOME/MobileSDK3/KapselSDK/cli
- Run the command:npm -g installOn Mac, you may need to run the command as sudo:sudo npm -g install
- Change directories to the directory containing the project and run the command:
kapsel package kapsel deploy <com.mycompany.app_ID> <localhost:<port> <Admin_user_name> <Admin_password>
The HTML files that make up the app are compressed into a ZIP file and uploaded to SAP Mobile Platform Server, and the cockpit shows that revision <x> was uploaded.