SAP / cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Apache License 2.0
43 stars 5 forks source link

Possibility to download HTML5 application from CLI in MTAR #60

Closed Guihoss closed 1 year ago

Guihoss commented 1 year ago

Hello,

When downloading a HTML5 application from the BTP cockpit it delivers a ZIP file and not a MTAR file.

Is there a possibility to download the application as a MTAR file with the CLI plugin?

Thank you and regards, Guilherme

micellius commented 1 year ago

@Guihoss , thanks for reporting an issue!

The CF HTML5 Apps Repo CLI Plugin does not support MTAR format to upload or download HTML5 applications. It interacts with CF HTML5 Applications Repository service APIs directly without use of intermediate services that help to handle complex deployment scenarios. When HTML5 applications are deployed using cf html5-push there is no MTAR in use, and therefore no persisted knowledge about related destinations, service-instances, back-end applications and any other modules or resources that are usually described in MTA.

CF HTML5 Apps Repo CLI Plugin provides the following download options:

The MTAR is a format used by MultiApps Controller service, which is usually accessed with MultiApps CF CLI Plugin. According to their documentation, the download MTAR operation is not supported either.

If you have access to the source files of the project (that has mta.yaml file), you can build it with MBT Tool on your local environment or within SAP Business Application Studio. The results of the build will contain MTAR file.