简体   繁体   中英

Export Version and Adapters from the Source Code using the mfpdev (Exporting Zips from Adapter and Source Code)

Hi we are planning to have a automated build for our IBM Mobilefirst cordova project. we are now using the mfpdev to deploy the adapter and also to register the new version using the CLI via Azure dev ops. But some of our MFP Server's are not accessible to the outside so for us the only way is to go the mfpconsole export the Adapter and Version and manually install them in those machines. Is there any command to export the Adapter.zip and version.zip from our source code via mfpdev so that i can store them in our build process and we wont loose older adapters in the process.

The only thing i can see it mfpdev app export which help me export the entire application which i don't need.

Mfpdev CLI does not have such an option. However, you can either use mfpadm command line tool or Admin REST endpoint to achieve this:

  1. mfpadm command:

    Adapter get binary

    Usage:

    mfpadm adapter mfp <Adapter_Name> get binary > /tmp/MyAdapter.adapter

  2. Export resources using Admin REST API:

    Download Resources . With this option, you can export adapter binaries.

    Usage:

    https://www.example.com/mfpadmin/management-apis/2.0/runtimes/myruntime/export?resourceInfos=<Adapter_Name>||ADAPTER_CONTENT

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM