cloudfoundry / cloudfoundry/cli

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

Open
#3,211 1 comment 0 reactions 1 assignee View on GitHub

@gururajsh is already working on this.

Since Sep 20, 2024.

feature-request
Dominant language
Go
Stars
1.9k
Forks
990
Avg merge
1d 7h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.