13

Is it possible to use gcloud or gcutil to list all registered projects for a login? At https://developers.google.com/cloud/sdk/gcloud there is no mention of such an option.

Similar to gcloud config list --all, I am looking for something like gcloud project list --all

Dan Holevoet
  • 9,183
  • 1
  • 33
  • 49
Hanxue
  • 12,243
  • 18
  • 88
  • 130

2 Answers2

34

gcloud has a component that lets you list your gcloud projects:

gcloud projects list
rmmh
  • 6,997
  • 26
  • 37
Yahel
  • 37,023
  • 22
  • 103
  • 153
  • 2
    the preview component doesn't come installed by default, add it by typing `gcloud components update preview` – kzahel Jan 27 '15 at 19:42
  • @kzahel is right that this component doesn't come installed by default. At present you dont need to run any extra command - gcloud automatically detects missing component when gcloud alpha command is triggered & asks you if you want to install it. – Fill Aug 09 '15 at 00:11
  • 4
    This is no long in beta, so you can just run `gcloud projects list` – Justin Apr 07 '16 at 01:28
5

The tools can get a specific project, but in order to list all your projects you have to go to https://cloud.google.com/console

kateroh
  • 4,382
  • 6
  • 43
  • 62