在 SAP BTP 平台 CloudFoundry 环境找到 API endpoint:
然后使用命令行 cf api
,后面跟上这个 API endpoint:
然后使用 cf login
命令行登录:
如果password输入错误,会遇到上图的错误消息:
Authenticating... {"error":"invalid_grant","error_description":"User authentication failed: Unauthorized"}
输入正确的password之后,就可以看到这个 CloudFoundry 环境下的 org 列表了:
在 windows 环境变量设置里&