Downloading from the SAP Fiori Front-End Server

Use the downloadfromfes command to create a local target directory and download the application assets and related components from the SAP Fiori front-end server.

The packager prompts you to enter the user name and password for the SAP Fiori front-end server.

The downloaded assets will be determined from the applications property in the appConfig.js file. All related components, such as dependent reuse components, or SAP UI5 libraries, will also be downloaded. The packager will determine were the downloaded components are located on front end server provided that UIAddOn 2.0 has been installed. If this is not the case, the appConfig.js must specify the component base query path by using the url property. Also, if UIAddOn 2.0 is not installed, any reuse components must also be explicitly listed in the applications property in appConfig.js.

  • Required options

    --targetDir <path to local target directory>

    --config <path to appConfig.js>

    --host <SAP Fiori front-end server host>

    --port <SAP Fiori front-end server port>

    --proxy <host:port of proxy server> (if applicable)

  • Cache options

    By default, the packager caches SAP Fiori front-end server content locally, which means that repeated runs of the packager use the cached content. There are two types of cached content: Fiori application items and SAP UI5 library items.

    --noCache: Avoid using the cache altogether (that is, neither add to nor read from the cache).

    --cleanCache: Completely erase the cache, and retrieve all content from the SAP Fiori front-end server. The cache is refreshed with the new content.

    --cleanAppCache: Erase only cached application content, but not SAP UI5 library content.

  • Additional options

    --https: Use HTTPS protocol.

    --force: Overwrite an existing set of downloaded assets.

    --client <client id>: Append sap-client=<client id> to all HTTP requests, both during download and at runtime. Use this option if the SAP Fiori front-end server requires the sap-client URL parameter for HTTP requests.

    --maxReqs <number of parallel requests>: Set a lower or higher limit for parallel requests when downloading assets from the SAP Fiori front-end server. The packager normally tries to run up to 20 parallel HTTP requests.

  • Example

    node ~/SAP/SDK/apps/packager/bin/packager --targetDir packagedApp --config appConfig.js --host myfes.abc.com --port 443 --https downloadfromfes