HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_alpha_projects_search.1
.TH "GCLOUD_ALPHA_PROJECTS_SEARCH" 1



.SH "NAME"
.HP
gcloud alpha projects search \- search for projects matching the given query



.SH "SYNOPSIS"
.HP
\f5gcloud alpha projects search\fR [\fB\-\-query\fR=\fIQUERY\fR] [\fB\-\-limit\fR=\fILIMIT\fR] [\fB\-\-page\-size\fR=\fIPAGE_SIZE\fR] [\fB\-\-sort\-by\fR=[\fIFIELD\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(ALPHA)\fR You can specify the maximum number of projects to list using the
\f5\-\-limit\fR flag.



.SH "EXAMPLES"

The following command lists the last five created projects with names starting
with z, sorted by the project number (now called name) with 2 projects listed on
each page

.RS 2m
$ gcloud alpha projects search \-\-query="name:z*" \-\-sort\-by=name \e
    \-\-limit=5 \-\-page\-size=2
.RE

To list projects that have been marked for deletion:

.RS 2m
$ gcloud alpha projects search \-\-query='state:DELETE_REQUESTED'
.RE



.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-query\fR=\fIQUERY\fR

A boolean expression for the search criteria used to select the projects to
return. If no search criteria is specified then all accessible projects will be
returned. Query expressions can be used to restrict results based upon
displayName, state and parent, where the operators \f5=\fR (\f5:\fR) \f5NOT\fR,
\f5AND\fR and \f5OR\fR can be used along with the suffix wildcard symbol
\f5*\fR. The \f5displayName\fR field in a query expression should use escaped
quotes for values that include whitespace to prevent unexpected behavior.


.RE
.sp

.SH "LIST COMMAND FLAGS"

.RS 2m
.TP 2m
\fB\-\-limit\fR=\fILIMIT\fR

Maximum number of resources to list. The default is \fBunlimited\fR. This flag
interacts with other flags that are applied in this order: \fB\-\-flatten\fR,
\fB\-\-sort\-by\fR, \fB\-\-filter\fR, \fB\-\-limit\fR.

.TP 2m
\fB\-\-page\-size\fR=\fIPAGE_SIZE\fR

This flag specifies the maximum number of projects per page.

.TP 2m
\fB\-\-sort\-by\fR=[\fIFIELD\fR,...]

Comma\-separated list of resource field key names to sort by. The default order
is ascending. Prefix a field with ``~'' for descending order on that field. This
flag interacts with other flags that are applied in this order:
\fB\-\-flatten\fR, \fB\-\-sort\-by\fR, \fB\-\-filter\fR, \fB\-\-limit\fR.


.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.

Run \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist.