You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloud Foundry CLI delivers service-key command capable to print credentials. Unfortunately printing credentials to the terminal is not always secure. Additionally the response of this CLI is not parseable because of the text Getting key ... for service instance ... as ...
Yes, the solution is very simple now - just removing few lines with a script like this cf service-key $SK $SK-key | sed -n '2,$p' but still - since we talk about CLI it would be nice to make it a standard feature with some parameter like --parseable ( like in npm commands )
Desired solution
Instead of the script like this cf service-key $SK $SK-key | sed -n '2,$p' | jq .credentials
I'd like to run something like cf service-key $SK $SK-key --parseable | jq .credentials
The text was updated successfully, but these errors were encountered:
it is not common for a modern cli to output only something text for human-readable, but not easy-parse for automation.
Is there anyone know the reasons?
The problem
Cloud Foundry CLI delivers
service-key
command capable to print credentials. Unfortunately printing credentials to the terminal is not always secure. Additionally the response of this CLI is not parseable because of the textGetting key ... for service instance ... as ...
Yes, the solution is very simple now - just removing few lines with a script like this
cf service-key $SK $SK-key | sed -n '2,$p'
but still - since we talk about CLI it would be nice to make it a standard feature with some parameter like --parseable ( like in npm commands )Desired solution
Instead of the script like this
cf service-key $SK $SK-key | sed -n '2,$p' | jq .credentials
I'd like to run something like
cf service-key $SK $SK-key --parseable | jq .credentials
The text was updated successfully, but these errors were encountered: