IBM MFP How can I use mfpdev-cli upload (deploy) the .adapter?

541 views Asked by At

How can I use mfpdev-cli upload (deploy) the .adapter?

I need upload the .zip and .adapter in my MFP project

when I call (in root folder)

 mfpdev app webupdate --build

and I will get projecet.zip in MobileFirst folder

then, I call (not in root folder)

 mfpdev app webupdate --file project.zip

it's success update.

then It the same in adapter

I call (in root folder)

 mfpdev adapter build

and get projectAdapte.adapter in target folder

then, how can I upload this projectAdapte.adapter (not in root folder and not use mfpdev adapter deploy )?

2

There are 2 answers

4
manjunath kallannavar On BEST ANSWER

If you want deploy an Adapter to the server first build the adapter with command

mfpdev adapter build

-which will generate .adapter file in target folder

To deploy there are two ways

  1. From MFP server console click on Actions->Deploy Adapter-->Brows .adapter file in target folder -->Click on deploy
  2. mfpdev adapter deploy (For this you need to add mfpdev server using mfpdev server add command )

If there are more than adapter to be build and deploy then add all in front of command for ex:

mfpdev adapter deploy all
mfpdev adapter build all

mfpdev app webupdate is used for direct update feature.

For more details about mfpdev cli commands see here: MobileFirst CLI to Manage MobileFirst Artifacts.

And for more details about Adapters see here: Developing Adapters

0
Gaurab Kumar On

An Adapter is a separate Maven project. If you are creating multiple adapter in a project then you can put all adapter in a one file.

enter image description here

how can I upload this projectAdapte.adapter (not in root folder)?

You can build & deploy all adapter from project root folder using these command:

mfpdev adapter build all
mfpdev adapter deploy all