Take "glcoud projects list" as an example.
If I run this in cloud shell, the output is as follows:
NAME: My User Project
NAME: Services Exploration Labs
I would like it to output like this:
PROJECT_ID NAME PROJECT_NUMBER
my-user-project-324414 My User Project 12345
eference-flux-326616 Services Exploration Labs 67890
I have Googled high and low… just can’t figure it out.
I also had the same problem, turns out that I had the accessibility option turned on.
You can use the following command to turn it off
gcloud config set accessibility/screen_reader false
Same behaviour on my side. I tried all the different format options at https://cloud.google.com/sdk/gcloud/reference/topic/formats but without much success.
Interestingly the output while running gcloud in a e.g. iTerm directly on the OS is still pretty-printed