Google Cloud CLI (gcloud) · Output and filtering

Choose the output format

Print results as JSON. Other formats include yaml, table and value.

gcloud compute instances list --format json

Official Google Cloud CLI (gcloud) documentation

More output and filtering commands

All output and filtering commands · Google Cloud CLI (gcloud) cheatsheet

Was this page helpful?