Generating and Uploading Kapsel App Files Using the Command Line Interface

The Kapsel command line interface provides a way to generate a ZIP file that contains the HTML files that make up the app.

  1. Open a command prompt window, or terminal, and navigate to the folder that contains the Kapsel command line interface, for example:
    On Windows:
    SDK_HOME\MobileSDK3\KapselSDK\cli
    On Mac:
    ~SDK_HOME/MobileSDK3/KapselSDK/cli
  2. Run the command:
    npm -g install
    On Mac, you may need to run the command as sudo:
    sudo npm -g install
  3. 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> 
    You can, optionally, enter a platform in the package command, such as android or ios. The parameters to the deploy command are the app ID, the SAP Mobile Platform Server host name, and the user ID and password for Management Cockpit.
    The ZIP file containing the HTML files that make up the app is generated and then uploaded to SAP Mobile Platform Server, and the Management Cockpit shows that revision x was uploaded.