gcloud projects list --help
Revision as of 11:07, 2 May 2022 by Welcome (talk | contribs) (Welcome moved page Gcloud projects list --all to Gcloud projects list --help)
gcloud projects list --help
NAME gcloud projects list - list projects accessible by the active account SYNOPSIS gcloud projects list [--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE] [--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...] DESCRIPTION Lists all active projects, where the active account has Owner, Editor, Browser or Viewer permissions. Projects are listed in alphabetical order by project name. Projects that have been deleted or are pending deletion are not included. You can specify the maximum number of projects to list using the --limit flag. EXAMPLES The following command lists the last five created projects, sorted alphabetically by project ID: $ gcloud projects list --sort-by=projectId --limit=5 To list projects that have been marked for deletion: $ gcloud projects list --filter='lifecycleState:DELETE_REQUESTED' LIST COMMAND FLAGS --filter=EXPRESSION Apply a Boolean filter EXPRESSION to each resource item to be listed. If the expression evaluates True, then that item is listed. For more details and examples of filter expressions, run $ gcloud topic filters. This flag interacts with other flags that are applied in this order: --flatten, --sort-by, --filter, --limit.
See also
Advertising: