| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
As per question, would like to know if it is possible to upload, download or manage the services deployed on the App in Kony Fabric without using mfconsole. The intention is to create a CI flow to deploy those custom services (in JAR format).
However, so far i only found this document (http://docs.kony.com/konylibrary/konyfabric/kony_fabric_user_guide/Default.htm#CI_MobileFabric.htm ) where it use a compiled .zip or folder to import and export as a whole application with metadata and JSON, not on service level.
**Update:
I have drilled into mfcli.jar file, i find that there are 2 commands inside: ImportServiceCommand.class and ExportServiceCommand.class. Can anyone guide me the method to use these 2 commands?
**Update 2:
Okay, i think i have found the sample through mfcli.jar help. However, i get TimeOut error when trying to export-service.
command:
#java -jar mfcli.jar export-service -u <user> -p <encrypted_password> -au http://<fabric ip>:8080 -cu http://<fabric ip>:8080 -f "/path/to/service.zip" -s service -v 1.0
output:
Exporting service [service], version [1.0] and storing to ["/path/to/service.zip"]...
ERROR: HTTP GET on http://<fabric ip>:8080/workspace/100000002/api/v1/ws/100000002/service/versions?name=service failed for fetch the versions of service. Details - Read timed out
**Update 3:
Found out that TimeOut error is due to network issue, i didnt get TimeOut after change to intranet machine.
I have another question in my head, is it possible to link the service to an App without mfconsole? Because i find that the imported service is not link to any App in default. Any configuration can be made so the imported service will linked to an App automatically?
**Update 4:
Just realised even service level of deployment using mfcli.jar is bundled together with metadata file. Can anyone propose solutions to import service, JAR file only without metadata? Then link the imported service to existing App?
Appreciate any help and feedback.