gcloud Help and Discovery
Summary
gcloudis a large command tree, and most operators only memorize a small subset of it. Effective CLI work depends on being able to discover commands quickly, read help pages efficiently, distinguish GA surfaces from beta and alpha tracks, and capture enough local environment detail to explain a failed invocation or support ticket.This note walks through help-tree navigation, topic references, release-track awareness, keyword discovery, and local diagnostic commands that expose the current SDK, account, project, and configuration context. The local help pages, search results, and workstation diagnostics were refreshed on April 15, 2026 with Google Cloud SDK
563.0.0.
Live-run boundary
On April 15, 2026 the local CLI still had
core/project = bq-wh-nb, even though that project now reportsDELETE_REQUESTEDin the live Resource Manager surface. That matters only for the diagnostic-context examples in this note. The help, topic, release-track, and search outputs are local SDK behavior and do not depend on that project being healthy.
Glossary
gcloud helpThe main help command that prints a command help page or searches help text for matching terms.
gcloud topicThe supplementary-help command group for non-command concepts such as filters, formats, projections, and startup behavior.
release track
The maturity level of a
gcloudcommand surface: GA, beta, or alpha.GA
General availability. The stable release track intended for normal production use and covered by Google Cloud deprecation policy.
beta
Pre-GA command surface that is usable but still allowed to change before GA promotion.
alpha
Earliest preview command surface. Behavior, flags, and even command existence can change more aggressively than beta.
command group
A non-leaf node in the
gcloudcommand tree, such ascompute,iam, orservices.command
A leaf operation in the
gcloudtree, such asgcloud compute instances create.positional argument
A required or ordered argument that is supplied without a flag name, such as
INSTANCE_NAMESingcloud compute instances create.flag
A named option passed as
--flagor--flag=valuethat changes command behavior.global flag
A flag available across many or all
gcloudcommands, such as--project,--account,--format, or--verbosity.
gcloud infoA local diagnostic command that prints installation, configuration, account, and environment details for the current SDK instance.
gcloud cheat-sheetA curated quick-reference command that prints a compact roster of common
gcloudcommands by task area.
gcloud feedbackThe support and feedback entry point that opens Google Cloud CLI support channels and can attach log context.
interactive mode
The beta
gcloudshell experience that adds auto-completion, active help, command history, and context shortcuts.
PowerShell / Linux
The core gcloud help, topic, release-track, and diagnostic commands are identical across PowerShell, Bash, and other shells. The only shell-specific behavior in this note appears in the help-search examples, where pager suppression had to be expressed with PowerShell environment-variable syntax to keep the search non-interactive in this terminal.
gcloud | navigate the help tree
The gcloud help system is a tree. Top-level help shows major groups and standalone commands, group help shows the next level down, and a direct command help page explains one concrete operation in full. This tree-walking model is the fastest way to discover a command when you know the product area but not the exact verb.
Read the top-level help page
At the start of a session with an unfamiliar workstation, or any time you need to re-orient yourself inside the overall gcloud command tree. It is typically triggered by you know you need gcloud, but you do not yet know which command group contains the operation you want. Read-only local help command. It does not call project APIs or modify the active configuration. Show the top-level command grammar, global flags, major command groups, and built-in standalone commands.
Print the opening section of the top-level gcloud help page.
gcloud helpNAME
gcloud - manage Google Cloud resources and developer workflow
SYNOPSIS
gcloud GROUP | COMMAND [--account=ACCOUNT]
[--billing-project=BILLING_PROJECT] [--configuration=CONFIGURATION]
[--flags-file=YAML_FILE] [--flatten=[KEY,...]] [--format=FORMAT]
[--help] [--project=PROJECT_ID] [--quiet, -q]
[--verbosity=VERBOSITY; default="warning"] [--version, -v] [-h]
[--access-token-file=ACCESS_TOKEN_FILE]
[--impersonate-service-account=SERVICE_ACCOUNT_EMAILS] [--log-http]
[--trace-token=TRACE_TOKEN] [--no-user-output-enabled]
DESCRIPTION
The gcloud CLI manages authentication, local configuration, developer
workflow, and interactions with the Google Cloud APIs.
For a quick introduction to the gcloud CLI, a list of commonly used
commands, and a look at how these commands are structured, run gcloud
cheat-sheet or see the `gcloud` CLI cheat sheet
(https://cloud.google.com/sdk/docs/cheatsheet).
GLOBAL FLAGS
--account=ACCOUNT
Google Cloud user account to use for invocation.
--configuration=CONFIGURATION
File name of the configuration to use for this command invocation.
--format=FORMAT
Sets the format for printing command output resources.
--project=PROJECT_ID
The Google Cloud project ID to use for this invocation.
GROUPS
GROUP is one of the following:
alpha
(ALPHA) Alpha versions of gcloud commands.
auth
Manage oauth2 credentials for the Google Cloud CLI.
beta
(BETA) Beta versions of gcloud commands.
compute
Create and manipulate Compute Engine resources.
config
View and edit Google Cloud CLI properties.
iam
Manage IAM service accounts and keys.
projects
Create and manage project access policies.
services
List, enable and disable APIs and services.
topic
gcloud supplementary help.
COMMANDS
COMMAND is one of the following:
cheat-sheet
Display gcloud cheat sheet.
docker
(DEPRECATED) Enable Docker CLI access to Google Container Registry.
feedback
Provide feedback to the Google Cloud CLI team.
help
Search gcloud help text.
info
Display information about the current gcloud environment.
init
Initialize or reinitialize gcloud.
survey
Invoke a customer satisfaction survey for Google Cloud CLI.
version
Print version information for Google Cloud CLI components.The two most important clues are the GROUP | COMMAND grammar in the synopsis and the separation between GROUPS and COMMANDS. If the thing you want is a product area, it will usually appear under GROUPS. If it is a root-level utility such as info, help, or version, it appears under COMMANDS. The current SDK also exposes alpha and beta directly at the root, which is an immediate signal that release-track discovery starts at the top-level page.
Drill down from a product group to a resource subgroup
After you know the product area but still need to discover the resource families and verbs available under it. It is typically triggered by the top-level help confirms the right product group, but you still do not know the exact resource path. Read-only group help command. Show the next layer of the command tree so you can move from product area to a more specific resource collection.
List the Compute Engine subgroups and direct commands.
gcloud compute --helpNAME
gcloud compute - create and manipulate Compute Engine resources
SYNOPSIS
gcloud compute GROUP | COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
The gcloud compute command group lets you create, configure, and manipulate
Compute Engine virtual machine (VM) instances.
With Compute Engine, you can create and run VMs on Google's infrastructure.
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
GROUPS
GROUP is one of the following:
accelerator-types
Read Compute Engine accelerator types.
addresses
Read and manipulate Compute Engine addresses.
disks
Read and manipulate Compute Engine disks.
firewall-rules
List, create, update, and delete Compute Engine firewall rules.
images
List, create, and delete Compute Engine images.
instance-groups
Read and manipulate Compute Engine instance groups.
instance-templates
Read and manipulate Compute Engine instances templates.
instances
Read and manipulate Compute Engine virtual machine instances.
networks
List, create, and delete Compute Engine networks.
snapshots
List, describe, and delete Compute Engine snapshots.
zones
List Compute Engine zones.
COMMANDS
COMMAND is one of the following:
config-ssh
Populate SSH config files with Host entries from each instance.
connect-to-serial-port
Connect to the serial port of an instance.
scp
Copy files to and from Google Compute Engine virtual machines via scp.
ssh
SSH into a virtual machine instance.
NOTES
These variants are also available:
$ gcloud alpha compute
$ gcloud beta computeAt this level the structure becomes operational. instances is a subgroup because it owns many verbs. ssh is already a concrete command because it is a leaf operation directly under compute.
Drill from a subgroup to the concrete verbs you can run
After the group page tells you which resource collection you need. It is typically triggered by you know the resource type, such as VM instances, but still need to discover the available verbs. Read-only subgroup help command. Show the resource-level verbs that can be executed directly, such as list, describe, create, and delete.
List the verbs available under the Compute Engine instances subgroup.
gcloud compute instances --helpNAME
gcloud compute instances - read and manipulate Compute Engine virtual
machine instances
SYNOPSIS
gcloud compute instances GROUP | COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Read and manipulate Compute Engine virtual machine instances.
For more information about virtual machine instances, see the virtual
machine instances documentation.
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
GROUPS
GROUP is one of the following:
bulk
Manipulate multiple Compute Engine virtual machines with single command
executions.
network-interfaces
Read and manipulate Compute Engine instance network interfaces.
ops-agents
Manage Google Cloud Observability agents for Compute Engine VM
instances.
os-inventory
Read Compute Engine OS Inventory Data and Related Resources.
COMMANDS
COMMAND is one of the following:
add-access-config
Create a Compute Engine virtual machine access configuration.
add-labels
Add labels to Google Compute Engine virtual machine instances.
create
Create Compute Engine virtual machine instances.
delete
Delete Compute Engine virtual machine instances.
describe
Describe a virtual machine instance.
get-iam-policy
Get the IAM policy for a Compute Engine instance.
get-serial-port-output
Read output from a virtual machine instance's serial port.
list
List Compute Engine instances.
NOTES
These variants are also available:
$ gcloud alpha compute instances
$ gcloud beta compute instancesThis is the point where tree navigation turns into command selection. If you are walking the tree manually, the next literal step is gcloud compute instances create --help. The direct help command below reaches the same destination in one hop.
Open a full command help page directly
When you already know the full command path and want the detailed manual page immediately. It is typically triggered by you need the synopsis, positional arguments, flags, examples, and notes for one leaf command. Read-only help command for a specific leaf command. Print the full manual page for the exact operation you are about to run.
Open the full help page for the instance-creation command without manually traversing every tree level.
gcloud help compute instances createNAME
gcloud compute instances create - create Compute Engine virtual machine
instances
SYNOPSIS
gcloud compute instances create INSTANCE_NAMES [INSTANCE_NAMES ...]
[--accelerator=[count=COUNT],[type=TYPE]] [--async]
[--availability-domain=AVAILABILITY_DOMAIN]
[--no-boot-disk-auto-delete]
[--boot-disk-device-name=BOOT_DISK_DEVICE_NAME]
[--boot-disk-interface=BOOT_DISK_INTERFACE]
[--boot-disk-provisioned-iops=BOOT_DISK_PROVISIONED_IOPS]
[--boot-disk-provisioned-throughput=BOOT_DISK_PROVISIONED_THROUGHPUT]
[--boot-disk-size=BOOT_DISK_SIZE] [--boot-disk-type=BOOT_DISK_TYPE]
[--can-ip-forward] [--create-disk=[PROPERTY=VALUE,...]]
[--csek-key-file=FILE] [--deletion-protection]
[--description=DESCRIPTION]
[--discard-local-ssds-at-termination-timestamp=DISCARD_LOCAL_SSDS_AT_TERMINATION_TIMESTAMP]
[--labels=[KEY=VALUE,...]] [--machine-type=MACHINE_TYPE]
[--metadata=KEY=VALUE,[KEY=VALUE,...]]
[--network=NETWORK] [--subnet=SUBNET] [--tags=TAG,[TAG,...]]
[--zone=ZONE]
[--address=ADDRESS | --no-address]
[--image-project=IMAGE_PROJECT --image=IMAGE
| --image-family=IMAGE_FAMILY | --source-snapshot=SOURCE_SNAPSHOT]
[--scopes=[SCOPE,...] | --no-scopes]
[--service-account=SERVICE_ACCOUNT | --no-service-account]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute instances create facilitates the creation of Compute Engine
virtual machines.
When an instance is in RUNNING state and the system begins to boot, the
instance creation is considered finished, and the command returns with a
list of new virtual machines. Note that you usually cannot log into a new
instance until it finishes booting.
EXAMPLES
To create an instance with the latest 'Red Hat Enterprise Linux 8' image
available, run:
$ gcloud compute instances create example-instance \
--image-family=rhel-8 --image-project=rhel-cloud \
--zone=us-central1-a
To create instances called 'example-instance-1', 'example-instance-2', and
'example-instance-3' in the 'us-central1-a' zone, run:
$ gcloud compute instances create example-instance-1 \
example-instance-2 example-instance-3 --zone=us-central1-a
POSITIONAL ARGUMENTS
INSTANCE_NAMES [INSTANCE_NAMES ...]
Names of the instances to create.
FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
--description=DESCRIPTION
Specifies a textual description of the instances.
--machine-type=MACHINE_TYPE
Specifies the machine type to use for the instance.
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.
NOTES
These variants are also available:
$ gcloud alpha compute instances create
$ gcloud beta compute instances createThe direct help page is where execution details live. It defines the positional arguments, exposes the flag surface, and shows examples that often reveal the expected resource shape faster than the product documentation does.
Read the help output anatomy
After opening any non-trivial command help page. It is typically triggered by you need to parse the help page quickly instead of reading it top to bottom. This is an interpretation of the live help structure shown above. Turn the help page into a predictable checklist so you can find the relevant section immediately.
The major help sections have stable jobs:
| Section | What it tells you | Why it matters operationally |
|---|---|---|
NAME | The exact command path and one-line purpose | Confirms you are reading the right manual page. |
SYNOPSIS | The formal command grammar | Shows required positional arguments, optional flags, and mutually exclusive flag groups. |
DESCRIPTION | The command’s behavioral summary | Explains what the command actually does and when it returns. |
POSITIONAL ARGUMENTS | Ordered non-flag inputs | Prevents malformed invocations when the command requires names or IDs in a fixed position. |
FLAGS | Command-specific options | This is where most operational behavior is controlled. |
GCLOUD WIDE FLAGS | Shared global flags such as --project and --account | Explains context overrides that work across many commands. |
EXAMPLES | Example invocations | Often the fastest route to a correct first command. |
NOTES | Track-specific variants, deprecation notes, or related surfaces | Useful when the same operation exists under alpha or beta. |
The search-oriented controls on gcloud help are separate from the structural page sections above:
| Operand or flag | Syntax | Description |
|---|---|---|
| command path | gcloud help compute instances create | Opens the help page for one specific command. |
| search separator | gcloud help -- ssh | Switches gcloud help into search mode instead of page-display mode. |
--filter | gcloud help --filter="relevance>0.8" | Filters the returned help-search result rows. |
--limit | gcloud help --limit=20 -- project | Increases or decreases the number of help-search results shown. |
--page-size | gcloud help --page-size=50 -- project | Controls page size for result retrieval when paging is involved. |
--sort-by | gcloud help --sort-by=name -- project | Sorts help-search results by a field other than the default relevance ordering. |
gcloud | use the topic system for non-command references
The topic system covers concepts that do not belong to one leaf command: filters, formats, projections, startup behavior, escaping, and similar cross-cutting language rules. When you are asking “how does this syntax work?” rather than “what command should I run?”, gcloud topic is usually the right reference surface.
See how the topic dispatcher behaves with no topic name
When you are testing what gcloud topic itself does in the installed SDK. It is typically triggered by you expect a list of topics and want to see the current no-argument behavior directly. Read-only local help dispatcher invocation. Show the actual SDK behavior when gcloud topic is run without a topic name.
Run the bare topic dispatcher with no topic operand.
gcloud topicERROR: (gcloud.topic) Command name argument expected.
Available commands for gcloud topic:
accessibility Reference for `Accessibility` features.
arg-files Supplementary help for arg-files to be used with
*gcloud firebase test*.
cli-trees CLI trees supplementary help.
client-certificate Client certificate authorization supplementary
help.
command-conventions gcloud command conventions supplementary help.
configurations Supplementary help for named configurations.
datetimes Date/time input format supplementary help.
endpoint-override gcloud endpoint override supplementary help.
escaping List/dictionary-type argument escaping
supplementary help.
filters Resource filters supplementary help.
flags-file --flags-file=YAML_FILE supplementary help.
formats Resource formats supplementary help.
gcloudignore Reference for `.gcloudignore` files.
offline-help Setting up gcloud command offline help.
projections Resource projections supplementary help.
resource-keys Resource keys supplementary help.
startup Supplementary help for gcloud startup options.
uninstall Supplementary help for uninstalling Google Cloud
CLI.In SDK 563.0.0, bare gcloud topic is a dispatcher, not a clean listing command. It returns an error because a topic name is missing, but the error still prints the currently available topics, which is enough to discover the topic namespace.
Read the filter language reference
Before writing a non-trivial --filter expression. It is typically triggered by you need authoritative syntax for Boolean operators, comparison operators, or server/client filtering behavior. Read-only local supplementary help command. Show the canonical filter-language reference used across gcloud list commands.
Print the opening section of the filter reference.
gcloud topic filtersNAME
gcloud topic filters - resource filters supplementary help
DESCRIPTION
Most gcloud commands return a list of resources on success. By default they
are pretty-printed on the standard output. The
--format=NAME[ATTRIBUTES](PROJECTION) and --filter=EXPRESSION flags along
with projections can be used to format and change the default output to a
more meaningful result.
Use the --format flag to change the default output format of a command. For
details run $ gcloud topic formats.
Use the --filter flag to select resources to be listed. Resource filters
are described in detail below.
Note: Depending on the specific server API, filtering may be done entirely
by the client, entirely by the server, or by a combination of both.
Filter Expressions
A filter expression is a Boolean function that selects the resources to
print from a list of resources. Expressions are composed of terms connected
by logic operators.This is the authoritative local reference for --filter. The most important operational warning is the client/server split: filtering can reduce server-side result volume for some APIs, but not for all of them.
Read the format language reference
Before building a custom --format expression. It is typically triggered by you remember that table, json, value, or csv exists, but not the exact projection grammar. Read-only local supplementary help command. Show the syntax model behind --format expressions.
Print the opening section of the format reference.
gcloud topic formatsNAME
gcloud topic formats - resource formats supplementary help
DESCRIPTION
Most gcloud commands return a list of resources on success. By default they
are pretty-printed on the standard output. The
--format=NAME[ATTRIBUTES](PROJECTION) and --filter=EXPRESSION flags along
with projections can be used to format and change the default output to a
more meaningful result.
Use the --format flag to change the default output format of a command.
Resource formats are described in detail below.
Formats
A format expression is used to change the default output format of a
command. Many output formats are available; some for pretty printing
human-readable output and others for returning machine-readable output.
A format expression has 3 parts:
NAME
nameThe key sentence is that a format expression has named parts. Once you understand NAME[ATTRIBUTES](PROJECTION), the entire output-formatting system becomes easier to reason about.
Read the projection and transform reference
When you know you need --format, but the missing piece is field-path selection or transform functions. It is typically triggered by the resource contains nested objects, repeated arrays, or verbose URIs that need trimming. Read-only local supplementary help command. Show how projections pick fields and how transforms rewrite values before printing them.
Print the opening section of the projection reference.
gcloud topic projectionsNAME
gcloud topic projections - resource projections supplementary help
DESCRIPTION
Most gcloud commands return a list of resources on success. By default they
are pretty-printed on the standard output. The
--format=NAME[ATTRIBUTES](PROJECTION) and --filter=EXPRESSION flags along
with projections can be used to format and change the default output to a
more meaningful result.
Use projections to list a subset of resource keys in a resource. Resource
projections are described in detail below.
Projections
A projection is a list of keys that selects resource data values.
Projections are used in --format flag expressions. For example, the table
format requires a projection that describes the table columns:
table(name, network.ip.internal, network.ip.external, uri())
Transforms
A transform formats resource data values. Each projection key may have zero
or more transform calls:This is the command you want when you know the output language exists but cannot remember whether the right fix is a different field path, a transform function, or both.
Keep the other useful topics in reach
After you know that your question is cross-cutting rather than resource-specific. It is typically triggered by the problem is about startup behavior, escaping, file inclusion, or configuration semantics instead of one cloud resource. These are local supplementary help topics discoverable under gcloud topic. Map the remaining high-value topic pages to the operational questions they answer.
The most useful follow-on topics from the dispatcher output are:
| Topic | Command | What it helps with |
|---|---|---|
| configurations | gcloud topic configurations | Named configuration behavior, activation, and property scoping. |
| gcloudignore | gcloud topic gcloudignore | File exclusion semantics for deployments that honor .gcloudignore. |
| escaping | gcloud topic escaping | Escaping rules for list- and dictionary-style arguments. |
| resource-keys | gcloud topic resource-keys | The field-path language used for filters, projections, and flattening. |
| startup | gcloud topic startup | Startup properties, environment variables, and invocation behavior. |
| Operand or flag | Syntax | Description |
| --- | --- | --- |
| topic operand | gcloud topic filters | Opens one specific supplementary help topic. |
--help | gcloud topic --help | Lists available topic names cleanly without opening a specific topic page. |
gcloud | understand GA, beta, and alpha release tracks
Release tracks are about command maturity, not about resource importance. The same product area can expose a stable GA surface for one operation and a preview beta or alpha surface for a newer one. Operators need to notice the track before they hard-code the command into automation.
stateDiagram-v2 direction LR [*] --> Alpha Alpha --> Beta: feature matures Beta --> GA: interface stabilizes state Alpha { [*] --> Preview } state Beta { [*] --> PreGA } state GA { [*] --> Stable } note right of Alpha Requires alpha surface Highest change risk May be removed or reshaped end note note right of Beta Requires beta surface Pre-GA but more mature Still allowed to change end note note right of GA Default track Stable for automation Covered by deprecation policy end note
Inspect the beta command tree
When you suspect a needed feature exists only outside GA. It is typically triggered by A GA command is missing a verb or flag that newer documentation or examples mention. Read-only help command for the beta release track. Show the beta root surface and confirm that the current SDK exposes a separate beta namespace.
Print the opening section of the beta release-track help page.
gcloud beta --helpNAME
gcloud beta - beta versions of gcloud commands
SYNOPSIS
gcloud beta GROUP | COMMAND [--account=ACCOUNT]
[--billing-project=BILLING_PROJECT] [--configuration=CONFIGURATION]
[--flags-file=YAML_FILE] [--flatten=[KEY,...]] [--format=FORMAT]
[--help] [--project=PROJECT_ID] [--quiet, -q]
[--verbosity=VERBOSITY; default="warning"] [--version, -v] [-h]
[--access-token-file=ACCESS_TOKEN_FILE]
[--impersonate-service-account=SERVICE_ACCOUNT_EMAILS] [--log-http]
[--trace-token=TRACE_TOKEN] [--no-user-output-enabled]
DESCRIPTION
(BETA) Beta versions of gcloud commands.The beta root makes the track explicit in two places: the NAME line and the (BETA) marker in DESCRIPTION. That is the first stability signal to notice before copying a command into scripts.
Inspect the alpha command tree
When a feature appears to exist only in the earliest preview surface. It is typically triggered by GA and beta both lack the command shape you need, or documentation explicitly mentions an alpha command. Read-only help command for the alpha release track. Show the alpha root surface and confirm that the current SDK exposes an alpha namespace.
Print the opening section of the alpha release-track help page.
gcloud alpha --helpNAME
gcloud alpha - alpha versions of gcloud commands
SYNOPSIS
gcloud alpha GROUP | COMMAND [--account=ACCOUNT]
[--billing-project=BILLING_PROJECT] [--configuration=CONFIGURATION]
[--flags-file=YAML_FILE] [--flatten=[KEY,...]] [--format=FORMAT]
[--help] [--project=PROJECT_ID] [--quiet, -q]
[--verbosity=VERBOSITY; default="warning"] [--version, -v] [-h]
[--access-token-file=ACCESS_TOKEN_FILE]
[--impersonate-service-account=SERVICE_ACCOUNT_EMAILS] [--log-http]
[--trace-token=TRACE_TOKEN] [--no-user-output-enabled]
DESCRIPTION
(ALPHA) Alpha versions of gcloud commands.Alpha is the strongest signal that the surface is preview-only. If a workflow depends on alpha, the default assumption should be that command shape and behavior may still move.
Recognize track markers inside command help
Before you operationalize a command whose stability you have not yet verified. It is typically triggered by you need to know whether the command page itself exposes GA/beta/alpha hints. Read-only command help page under the beta surface, plus the earlier GA page’s NOTES block. Show how the installed SDK marks track information at the command-page level.
Open the interactive-shell help page, which currently lives under the beta surface.
gcloud beta interactive --helpNAME
gcloud beta interactive - start the gcloud interactive shell
SYNOPSIS
gcloud beta interactive [--context=CONTEXT] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) gcloud beta interactive provides an enhanced bash(1) command line
with features that include:
o auto-completion and active help for all commands
o state preservation across commands: cd, local/environment variables
Display
The gcloud beta interactive display window is divided into sections,
described here from top to bottom.The installed SDK marks track in two patterns. Track-only command pages, such as gcloud beta interactive, label themselves directly as (BETA) or (ALPHA). GA pages often show track variants in NOTES, as the earlier gcloud help compute instances create page did when it listed matching alpha and beta variants.
Alpha and beta are poor defaults for production automation
Preview commands can add, rename, or remove flags before GA promotion. That makes them a weak contract for unattended jobs, CI pipelines, and long-lived operator runbooks.
Keep automation on GA unless the preview feature is the requirement
Use GA for persistent scripts. Move to beta only when a required feature does not exist in GA, and treat alpha as lab-only unless you accept regular command-maintenance work.
The current installation already has preview components available. gcloud info reports both alpha and beta under Installed Components, which means this workstation can execute preview surfaces without additional installation work.
| Track | Invocation form | Stability expectation | Operational use |
|---|---|---|---|
| GA | gcloud COMMAND | Stable default surface | Production scripts, shared runbooks, repeated team workflows |
| beta | gcloud beta COMMAND | Pre-GA, still changeable | Feature evaluation, migration prep, controlled testing |
| alpha | gcloud alpha COMMAND | Earliest preview, highest churn | Experimentation, exploratory labs, short-lived proof of concept work |
gcloud | inspect the local CLI environment before debugging
When a gcloud command fails, the first question is often not “what is the right flag?” but “what environment am I actually running in?” Version, installed components, active configuration, active account, and active project explain a large percentage of seemingly mysterious failures.
Print the full local environment summary
Before debugging an unexpected CLI behavior, and before filing a support ticket or internal incident note. It is typically triggered by A command behaves differently on two machines, or a teammate needs your exact SDK context. Read-only local diagnostic command. Capture installation, component, configuration, account, and runtime-environment details in one place.
Print the current Cloud SDK environment summary.
gcloud infoGoogle Cloud SDK [563.0.0]
Platform: [Windows, x86_64] uname_result(system='Windows', node='Elysium', release='11', version='10.0.26200', machine='AMD64')
Locale: ('English_United States', '1252')
Python Version: [3.13.12 ...]
Python Location: [C:\Users\aperi\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python.exe]
OpenSSL: [OpenSSL 3.0.18 30 Sep 2025]
Requests Version: [2.32.3]
urllib3 Version: [2.6.3]
Default CA certs file: [C:\Users\aperi\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\certifi\cacert.pem]
Site Packages: [Disabled]
Installation Root: [C:\Users\aperi\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
alpha: [2026.03.27]
beta: [2026.03.27]
bq: [2.1.31]
cloud-sql-proxy: [2.21.2]
core: [2026.03.27]
gcloud-crc32c: [1.0.0]
gsutil: [5.36]
log-streaming: [0.3.2]
Installation Properties: [C:\Users\aperi\AppData\Local\Google\Cloud SDK\google-cloud-sdk\properties]
User Config Directory: [C:\Users\aperi\AppData\Roaming\gcloud]
Active Configuration Name: [default]
Active Configuration Path: [C:\Users\aperi\AppData\Roaming\gcloud\configurations\config_default]
Account: [alexper.recovery@gmail.com]
Project: [bq-wh-nb]
Universe Domain: [googleapis.com]
Current Properties:
[accessibility]
screen_reader: [False] (property file)
[core]
account: [alexper.recovery@gmail.com] (property file)
disable_usage_reporting: [False] (property file)
project: [bq-wh-nb] (property file)
[run]
region: [europe-west1] (property file)
Logs Directory: [C:\Users\aperi\AppData\Roaming\gcloud\logs]
Last Log File: [C:\Users\aperi\AppData\Roaming\gcloud\logs\2026.04.15\23.16.36.593971.log]This output is the fastest diagnostic snapshot in the note. It answers five operational questions at once:
| Area | Evidence in output | Why it matters |
|---|---|---|
| installation | Google Cloud SDK [563.0.0], Installation Root, bundled Python path | Confirms exact SDK build and runtime path. |
| configuration | User Config Directory, Active Configuration Name, Active Configuration Path | Shows which on-disk config root and named profile are active. |
| account properties | Account, Project, and Current Properties | Confirms the effective authenticated principal and default project context. |
| accessibility | [accessibility] screen_reader: [False] | Shows whether accessibility-oriented rendering behavior is enabled. |
| network and proxy | no explicit proxy block appears in this output | Inference: the current SDK session is not exposing an explicit CLI proxy override here, which is consistent with direct network access. |
The important operational caveat is that the local default project is still bq-wh-nb. On April 15, 2026 that project was already in DELETE_REQUESTED, so a help lookup may work while a real API command still fails because the inherited project context is stale.
Print the exact component versions
When the problem might be version-specific, or when another operator asks which components are installed. It is typically triggered by you need a concise version block rather than the full environment dump from gcloud info. Read-only local diagnostic command. Print the SDK version and installed component versions in a compact support-friendly format.
Print the Cloud SDK version and installed component versions.
gcloud versionGoogle Cloud SDK 563.0.0
alpha 2026.03.27
beta 2026.03.27
bq 2.1.31
cloud-sql-proxy 2.21.2
core 2026.03.27
gcloud-crc32c 1.0.0
gsutil 5.36
log-streaming 0.3.2
Updates are available for some Google Cloud CLI components. To install them,
please run:
$ gcloud components updateThis is the version block you want in tickets, bug reports, and “works on my machine” comparisons. It is shorter than gcloud info, but it still proves whether preview components are installed.
Print the active property set
Before running any command that depends on implicit defaults such as project, account, region, or zone. It is typically triggered by you suspect that the wrong configuration is active or that a hidden property is steering command behavior. Read-only local configuration command. Show the current configuration properties that gcloud will inherit when flags are omitted.
Print the currently active gcloud properties.
gcloud config list[accessibility]
screen_reader = False
[core]
account = alexper.recovery@gmail.com
disable_usage_reporting = False
project = bq-wh-nb
[run]
region = europe-west1
Your active configuration is: [default]This output confirms that the active named configuration is default, that the effective account is alexper.recovery@gmail.com, and that any unqualified command will target bq-wh-nb unless a flag overrides it.
Print the credentialed accounts and active principal
When you need to prove which identity is currently active. It is typically triggered by authentication behavior looks wrong, or a command is failing with permission errors that might be tied to the wrong account. Read-only local credential inventory command. Show which accounts are credentialed locally and which one is currently active.
List the locally credentialed accounts and mark the active one.
gcloud auth list Credentialed Accounts
ACTIVE ACCOUNT
* alexper.recovery@gmail.com
bq-wh-sa@bq-wh-nb.iam.gserviceaccount.com
To set the active account, run:
$ gcloud config set account `ACCOUNT`This is the fastest identity check in the CLI. The workstation still has both the personal user account and the older bq-wh-sa@bq-wh-nb.iam.gserviceaccount.com credential cached locally, so downstream permission failures may come either from the wrong active account or from an outdated project default.
| Diagnostic command | What it proves | Best use |
|---|---|---|
gcloud info | Full local installation and context snapshot | Support tickets, workstation drift, preview-component checks |
gcloud version | Exact SDK and component versions | Fast version comparison between machines |
gcloud config list | Effective local property set | Wrong-project or wrong-region debugging |
gcloud auth list | Locally credentialed accounts and active principal | Identity and permission triage |
gcloud | use interactive mode when static help is too slow
Interactive mode is a discovery shell, not a different API client. It wraps the same CLI with auto-completion, active help, persistent history, and context shortcuts so you can explore the tree faster than repeated manual --help invocations.
Inspect the interactive shell help page
When you are evaluating whether the interactive shell is worth enabling on a workstation. It is typically triggered by tree navigation and repeated help lookups are slowing you down. Read-only help command for the beta interactive shell. Launching the real shell would take over the terminal, so --help is the correct live capture for a documentation note. Show the interactive shell’s feature set, on-screen layout, and key bindings.
Print the opening section of the interactive-shell help page.
gcloud beta interactive --helpNAME
gcloud beta interactive - start the gcloud interactive shell
SYNOPSIS
gcloud beta interactive [--context=CONTEXT] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) gcloud beta interactive provides an enhanced bash(1) command line
with features that include:
o auto-completion and active help for all commands
o state preservation across commands: cd, local/environment variables
Display
The gcloud beta interactive display window is divided into sections,
described here from top to bottom.
Previous Output
Command output scrolls above the command input section.
Command Input
Commands are typed, completed, and edited in this section.
Active Help
As you type, this section displays in-line help summaries for commands,
flags, and arguments.
Status Display
Current gcloud project and account information, and function key
descriptions and settings are displayed in this section.
F2:help:STATE
Toggles the active help section.
F7:context
Sets the context for command input.
F8:web-help
Opens a web browser tab/window to display the complete man page.
F9:quit
Exit.The current help page is explicit about what interactive mode adds: inline help, command completion, context reuse, and stateful navigation. It also shows that the feature is still beta, which matters if you are deciding whether to standardize it across a team.
Interactive mode has two practical limitations. First, it is a beta surface rather than GA. Second, it is a terminal experience, so it is less useful in restricted shells, fully non-interactive automation, or environments where browser launch and full terminal control are undesirable.
| Feature or key | Meaning | Operational value |
|---|---|---|
| active help | Inline command, flag, and argument help as you type | Reduces context switching into separate help pages |
| tab completion | Dynamic completion for commands and many values | Speeds up discovery and reduces typos |
F7 context | Pre-populates a common command prefix | Useful when working in one product area for a while |
F8 web help | Opens the full command page in a browser | Faster deep-dive when inline help is too short |
F9 quit | Exits the interactive shell | Clean way to leave the session |
gcloud | discover commands by keyword and quick references
Help-tree traversal is best when you know the product area. Keyword search and the cheat sheet are better when you only know a noun, a verb, or a concept such as SSH, service accounts, or projects. This is also the section where gcloud feedback becomes relevant: if discovery turns into a bug report, that command is the formal escalation path.
Search the help corpus by keyword
When you know the concept or protocol but not the product group or exact command path. It is typically triggered by you need all SSH-related commands, not just the first one that comes to mind. Read-only help-search command. In this PowerShell terminal, pager suppression was required to keep search output non-blocking. Search the local help corpus for commands whose documentation matches a search term.
Pager suppression in this shell
On this workstation,
gcloud help -- SEARCH_TERMSwaited on the pager untilCLOUDSDK_PAGERandPAGERwere cleared. The discovery pattern is stillgcloud help -- ssh; only the environment-variable syntax is shell-specific.
Search the local help corpus for SSH-related commands.
$env:CLOUDSDK_PAGER=''; $env:PAGER='cat'; gcloud help "--" ssh+----------------------------------+-------------------------------------------+
| COMMAND | SUMMARY |
+----------------------------------+-------------------------------------------+
| gcloud app instances SSH | SSH into the VM of an App Engine Flexible |
| | instance. |
+----------------------------------+-------------------------------------------+
| gcloud bms SSH-keys | Manage SSH keys for Bare Metal Solution. |
+----------------------------------+-------------------------------------------+
| gcloud cloud-shell SSH | Allows you to establish an interactive |
| | SSH session with Cloud Shell. |
+----------------------------------+-------------------------------------------+
| gcloud compute config-SSH | Populate SSH config files with Host |
| | entries from each instance. |
+----------------------------------+-------------------------------------------+
| gcloud compute os-login SSH-keys | List, add, update, and remove OS Login |
| | SSH Keys. |
+----------------------------------+-------------------------------------------+
Listed 5 of 73 items.This search result is intentionally broad. It does not only search command names; it searches help text. That is why both access commands and SSH-key management commands appear together.
Search by resource type when the noun is all you know
When you know the resource family but not the owning product group. It is typically triggered by you want service-account commands, but do not remember whether they live under auth, iam, or a product-specific subgroup. Read-only help-search command with the same pager-suppression workaround as above. Discover commands related to a resource noun across the full CLI tree.
Search the help corpus for service-account-related commands.
$env:CLOUDSDK_PAGER=''; $env:PAGER='cat'; gcloud help "--" service-account+----------------------------------------------+-------------------------------+
| COMMAND | SUMMARY |
+----------------------------------------------+-------------------------------+
| gcloud access-approval SERVICE-ACCOUNT | Manage Access Approval |
| | service account. |
+----------------------------------------------+-------------------------------+
| gcloud auth activate-SERVICE-ACCOUNT | Authorize access to Google |
| | Cloud with a service account. |
+----------------------------------------------+-------------------------------+
| gcloud builds get-default-SERVICE-ACCOUNT | Get the default service |
| | account for a project. |
+----------------------------------------------+-------------------------------+
| gcloud compute instances set-SERVICE-ACCOUNT | Set a service account and |
| | access scopes for a Compute |
| | Engine VM instance. |
+----------------------------------------------+-------------------------------+
| gcloud iam SERVICE-ACCOUNTs | Create and manipulate service |
| | accounts. |
+----------------------------------------------+-------------------------------+
Listed 5 of 228 items.This is the practical answer to “I do not know where service-account commands live.” Search gives you cross-product matches and quickly reveals that the core account-management surface lives under gcloud iam service-accounts.
Use the built-in cheat sheet for quick recall
When you need fast recall of common commands instead of exhaustive manual pages. It is typically triggered by you remember the general workflow area, but not the exact everyday commands inside it. Read-only quick-reference command. Print a curated shortlist of common commands organized by operational task area.
Print the opening section of the built-in gcloud cheat sheet.
gcloud cheat-sheetNAME
gcloud cheat-sheet - display gcloud cheat sheet
DESCRIPTION
A roster of go-to gcloud commands for the gcloud tool, Google Cloud's
primary command-line tool.
Getting started
Get going with the gcloud command-line tool
o gcloud init: Initialize, authorize, and configure the gcloud tool.
o gcloud version: Display version and installed components.
o gcloud components install: Install specific components.
o gcloud components update: Update your Google Cloud CLI to the latest
version.
o gcloud config set project: Set a default Google Cloud project to work
on.
o gcloud info: Display current gcloud tool environment details.
Help
Google Cloud CLI is happy to help
o gcloud help: Search the gcloud tool reference documents for specific
terms.
o gcloud feedback: Provide feedback for the Google Cloud CLI team.
o gcloud topic: Supplementary help material for non-command topics like
accessibility, filtering, and formatting.
Personalization
Make the Google Cloud CLI your own; personalize your configuration with
propertiesThe cheat sheet is intentionally curated rather than exhaustive. It is most useful when the operator knows the broad workflow area, such as setup, help, credentials, or projects, but does not want to search the full help corpus yet.
| Discovery pattern | Command | Strength | Limitation |
|---|---|---|---|
| tree navigation | gcloud compute --help | Best when you know the product area | Weak if you only know a generic noun |
| direct command help | gcloud help compute instances create | Fastest route to one manual page | Requires you to already know the full path |
| keyword search | gcloud help "--" ssh | Cross-cuts the whole CLI tree | Results can be broad and pager behavior may vary by shell |
| resource-noun search | gcloud help "--" service-account | Useful when you know the resource but not the product owner | Ranking may surface several related products |
| quick reference | gcloud cheat-sheet | Fast recall of common commands | Not exhaustive and not a substitute for full help |
Related
- gcloud-cli-setup — Install the SDK, manage components, and verify the local CLI baseline
- gcloud-authentication — Understand which credentials
gcloudis actually using when help output is not the problem - gcloud-configurations — Inspect and switch the local configuration context that help examples will inherit
- gcloud-output-formatting — Use
--format,--filter, and projections once discovery has identified the right command