Skip to content

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

Open
@AnilPonduri

Description

@AnilPonduri

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 : #1003
to get the output of particular variable selected.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions