google-cloud-platformgoogle-artifact-registry

How to display Google Artifact Registry repo's location using gcloud?


I try to display 3 fields about my repos using:

gcloud artifacts repositories list --format 'value(name,format,location)'

but this command doesn't show location, only name and format. How do I get location (eg: europe-west1) for my repos?


Solution

  • I encountered the same issue, but I tried uppercasing "location", and it worked:

    gcloud artifacts repositories list --format 'value(name,LOCATION)'

    Be careful: It's probably a bug on the gcloud cli, so this may break in the future