如何通过cf程序查看我的VCAP_SERVICES环境变量? [英] How can I see my VCAP_SERVICES environment variable with the cf program?

查看:68
本文介绍了如何通过cf程序查看我的VCAP_SERVICES环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 cf env< app-name> 时,它显示了我用 cf set-env设置的所有环境变量,但没有看到 VCAP_SERVICES 环境变量。如何查看该变量的值?

When I run cf env <app-name> it shows all the environment variables I've set with cf set-env, but I don't see the VCAP_SERVICES environment variable. How can I see that variable's value?

推荐答案

cf 程序, VCAP_SERVICES 环境现在将与其他环境变量一起显示,并使用命令 cf env< app-name>

As of version 6.10 of the cf program, the VCAP_SERVICES environment will now be displayed with the other environment variables, with the command cf env <app-name>.

要升级您的 cf 程序,请在发行页面上下载相应的版本:< a href = https://github.com/cloudfoundry/cli/releases rel = noreferrer> https://github.com/cloudfoundry/cli/releases

To upgrade your cf program, download the appropriate version on the releases page: https://github.com/cloudfoundry/cli/releases

这篇关于如何通过cf程序查看我的VCAP_SERVICES环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆