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/current/help/man/man1/gcloud_beta_topic_cli-trees.1
.TH "GCLOUD_BETA_TOPIC_CLI\-TREES" 1



.SH "NAME"
.HP
gcloud beta topic cli\-trees \- CLI trees supplementary help



.SH "DESCRIPTION"

\fB(BETA)\fR CLI trees are static nested dictionaries that describe all of the
groups, commands, flags, positionals, help text, and completer module paths for
a CLI. A CLI tree is often much faster to load and access than one generated at
runtime from an active CLI. It is also a more compact representation. A properly
formed CLI tree can be used to reproduce the help documentation for an entire
CLI.


.SH "CLI Tree Data Files"

A CLI tree is a dictionary in a JSON file. By convention, the file base name is
the corresponding CLI name. For example, the CLI tree file name for \fBgcloud\fR
is \fBgcloud.json\fR.

CLI trees associated with Google Cloud CLI modules are installed in the
\fBdata/cli\fR subdirectory of the Google Cloud CLI installation root:

.RS 2m
$(gcloud info \-\-format="value(installation.sdk_root)")/data/cli
.RE

This includes tree data for \fBgcloud\fR (core component), \fBbq\fR,
\fBgsutil\fR, and \fBkubectl\fR. Note that the tree data is installed with the
component. If the component is not installed then neither is its CLI tree. An
installed component does not require its CLI tree to run. Only the \fBgcloud\fR
CLI tree is required by \f5$ gcloud alpha interactive\fR.

By default, CLI trees for other commands are JSON files generated on demand from
their \fBman\fR(1) or \fBman7.org\fR man pages. They are cached in the \fBcli\fR
subdirectory of the global config directory:

.RS 2m
$(gcloud info \-\-format="value(config.paths.global_config_dir)")/cli
.RE


.SH "The gcloud CLI Tree"

The \fBgcloud\fR CLI tree is used for static TAB completion, the corpus for \f5$
gcloud alpha help\-search\fR, and the data source for \f5$ gcloud alpha
interactive\fR completions and help text generation.


.SH "Other CLI Trees"

\f5$ gcloud alpha interactive\fR uses CLI tree data files for typeahead, command
line completion and active help. A few CLI trees are installed with their
respective Google Cloud CLI components: \fBgcloud\fR (core component), \fBbq\fR,
\fBgsutil\fR, and \fBkubectl\fR.

The generated trees are a close approximation. You can construct your own,
especially for hierarchical CLIs like \fBgit\fR(1) that are hard to extract from
man pages.


.SH "CLI Tree Schema"

TBD (\f5gcloud interactive\fR is still in ALPHA).



.SH "NOTES"

This command is currently in beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud topic cli\-trees
.RE

.RS 2m
$ gcloud alpha topic cli\-trees
.RE