根据https://docs.developer.swisscom.com/services/services/managing-services.html#service-connector,我应该能够运行
cf service-connector 13000 XXXXSHOST.service.consul:XXXXSPORT
然而,这就是发生的事情:
PS C:\Users\XXXX> cf install-plugin .\Downloads\swisscom-plugin.exe
Installing plugin .\Downloads\swisscom-plugin.exe...
OK
Plugin SwisscomPlugin successfully installed.
PS C:\Users\XXXX> cf plugins
Listing Installed Plugins...
OK
Plugin name Version Command name Command Help
SwisscomPlugin 1.0.2 service-connector, sc Create a local listener for a service instance
PS C:\Users\XXXX> cf service-connector help
FAILED
Incorrect usage.
NAME:
service-connector - Create a local listener for a service instance
ALIAS:
sc
USAGE:
cf service-connector LOCAL_PORT SERVICE_HOST:SERVICE_PORT [--skip-ssl-validation]
OPTIONS:
-skip-ssl-validation Please don't
PS C:\Users\XXXX> cf service-connector 13000 XXXXSHOST.service.consul:XXXXSPORT
FAILED
No org or space targeted, use 'cf target -o ORG -s SPACE'
PS C:\Users\XXXX>
(XXXXSHOST and XXXXSPORT are the actual values from VCAP_SERVICES.)