cli icon indicating copy to clipboard operation
cli copied to clipboard

cf env app-name var-name to get a single environment variable

Open AnilPonduri opened this issue 1 year ago • 1 comments

I am raising this request where when viewing the environment variables of an application, we need to do ssh to that application and run python script to check for the variables once the application is deployed in cockpit. In my case I don't have access to do ssh to that application. OR else need to perform scripting to view the environment variables in my case VCAP_SERVICES since the output generated from cf env ${appname} contains all the environment variables VCAP_SERVICES, VCAP_APPLICATION, USER-PROVIDED VARIABLES etc. and it is not json formated It is failing to list only VCAP_SERVICES of a particular service using jq command.

So, I want to reopen the same issue, cf env app-name var-name to get a single environment variable #1003 : https://github.com/cloudfoundry/cli/issues/1003 to get the output of particular variable selected.

AnilPonduri avatar Sep 17 '24 12:09 AnilPonduri

Hello.. Thank you for opening the this issue. We have added this to our enhancements list. We'll review this request and get back to you.

gururajsh avatar Sep 20 '24 16:09 gururajsh