ZOWE CLI ZMF promote command

Hello,

I've noticed that the zowe zmf command 

zowe zmf promote pkg -p 'BKA 000435' --pl 1 --psn 'PROMOTE' --pn 'TEST' -c 'PYTCC002' -t 'COB'
 has an error. The --component parameter does not work, according to the "ZMF Rest Services API List" url provided by testing the API, this should be named "componentName".

URL of the API Test  for Selective Promote

IP-Adress:port/.../promotecomponentName=PYTCC002&componentType=COB

CLI Output for Selective Promote

CommonRest -createPayload  package=BKA%200000435&promotionLevel=1&promotionName=TEST&promotionSiteName=PROMOTE&component=PYTCC002&componentType=COB

We found out that, it works with the --componentarray parameter but the Help on the command is wrong


CLI Input for Selective Promote with Componentarray

zowe zmf promote pkg -p 'BKA 000435' --pl 1 --psn 'PROMOTE' --pn 'TEST' --componentarray '[{\"componentName\":\"PYTCC002\"}]' -t 'COB'

How it's described in the Help function of zowe zmf promote pkg -h
zowe zmf promote pkg -p 'BKA 000435' --pl 1 --psn 'PROMOTE' --pn 'TEST' --componentarray '[{\"component\":\"PYTCC002\"}]' -t 'COB'

If there are multiple components to promote (always selective promote)
zowe zmf promote pkg -p 'BKA 000435' --pl 1 --psn 'PROMOTE' --pn 'TEST' --componentarray '[{\"componentName\":\"PYTCC002\"},{\"componentType\":\"COB\"},{\"componentName\":\"PYTCC004\"},{\"componentType\":\"COB\"}]'
We had to specify for every component the componentType, which we didn't find described in the help or help-web.

Labels:

ChangeMan ZMF
  • Suggested Answer

    0  

    component -> componentName will be addressed in the next release of the cli plugin along with the web help. 

  • Suggested Answer

    0   in reply to   

    An updated version of the Changeman ZMF plugin for zowe cli is now available. 
    Please note that you MUST uninstall the Micro Focus branded version of the plugin before attempting to install this new Rocket branded version
    To uninstall the existing plugin issue the following command:

    zowe plugins uninstall @microfocus/zmf-cli-plugin 

    You can then check that the plugin has been removed :
    zowe plugins list

    The new version of the Changeman ZMF plugin for zowe cli is now published to npm and so is installed directly from NPM. You will not find this new version in the Open Text MarketPlace location.

    To install the new version 
    zowe plugins install @rocketsoftware/zmf-cli-plugin

    This version fixes a few minor bugs previously reported in the Community Forum.