CloudFoundry命令行安裝和卸載插件

使用如下的命令行安裝CloudFoundry命令行插件:


$ cf install-plugin multiapps-plugin.win64 -f


遇到如下錯誤消息:

Attention: Plugins are binaries written by potentially untrusted authors.

Install and use plugins at your own risk.

Plugin multiapps v2.2.1 could not be installed as it contains commands with names and aliases that are already used: bg-deploy, deploy, download-mta-op-logs, mta, mta-ops, mtas, purge-mta-config, undeploy, dmol. FAILED


CloudFoundry命令行安裝和卸載插件

google發現,因為我現有的CloudFoundry插件,其提供的命令和即將安裝的插件出現衝突了,比如兩者都提供cf deploy命令。因此要先將已安裝的插件卸載。


Google找到卸載插件的做法:

CloudFoundry命令行安裝和卸載插件

cf uninstall-plugin MtaPlugin

CloudFoundry命令行安裝和卸載插件


CloudFoundry命令行安裝和卸載插件

卸載舊的插件之後,安裝成功。

CloudFoundry命令行安裝和卸載插件


分享到:


相關文章: