- NAME
-
- gcloud compute - create and manipulate Google Compute Engine resources
- SYNOPSIS
-
-
gcloud computeGROUP|COMMAND[ GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
The gcloud compute command group lets you create, configure and manipulate
Google Compute Engine virtual machines.
With Compute Engine you can create and run virtual machines on Google infrastructure. Compute Engine offers scale, performance, and value that allows you to easily launch large compute clusters on Google's infrastructure.
More information on Compute Engine can be found here: https://cloud.google.com/compute/ and detailed documentation can be found here: https://cloud.google.com/compute/docs/
- GCLOUD WIDE FLAGS
-
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account,
--log-http, --project, --quiet, --trace-token, --user-output-enabled,
--verbosity. Run
$ gcloud helpfor details. - GROUPS
-
is one of the following:GROUPaccelerator-types- Read Google Compute Engine accelerator types.
addresses- Read and manipulate Google Compute Engine addresses.
backend-buckets- Read and manipulate backend buckets.
backend-services- List, create, and delete backend services.
commitments- Manage Google Compute Engine commitments.
disk-types- Read Google Compute Engine virtual disk types.
disks- Read and manipulate Google Compute Engine disks.
firewall-rules- List, create, update, and delete Google Compute Engine firewall rules.
forwarding-rules- Read and manipulate traffic forwarding rules to network load balancers.
health-checks- Read and manipulate health checks for load balanced instances.
http-health-checks- Read and manipulate HTTP health checks for load balanced instances.
https-health-checks- Read and manipulate HTTPS health checks for load balanced instances.
images- List, create, and delete Google Compute Engine images.
instance-groups- Read and manipulate Google Compute Engine instance groups.
instance-templates- Read and manipulate Google Compute Engine instances templates.
instances- Read and manipulate Google Compute Engine virtual machine instances.
interconnects- Read and manipulate Google Compute Engine interconnects.
machine-types- Read Google Compute Engine virtual machine types.
network-endpoint-groups- Read and manipulate Google Compute Engine network endpoint groups.
networks- List, create, and delete Google Compute Engine networks.
operations- Read and manipulate Google Compute Engine operations.
os-login- Create and manipulate Google Compute Engine OS Login resources.
project-info- Read and manipulate project-level data like quotas and metadata.
regions- List Google Compute Engine regions.
routers- List, create, and delete Google Compute Engine routers.
routes- Read and manipulate routes.
security-policies- Read and manipulate Google Compute Engine security policies. Security policies are used to control access to Google Cloud HTTP/HTTPS load balancers.
- Configure shared VPC.
snapshots- List, describe, and delete Google Compute Engine snapshots.
sole-tenancy- Read and manage Google Compute Engine sole-tenancy resources.
ssl-certificates- List, create, and delete Google Compute Engine SSL certificates.
ssl-policies- List, create, delete and update Google Compute Engine SSL policies.
target-http-proxies- List, create, and delete target HTTP proxies.
target-https-proxies- List, create, and delete target HTTPS proxies.
target-instances- Read and manipulate Google Compute Engine virtual target instances.
target-pools- Control Compute Engine target pools for network load balancing.
target-ssl-proxies- List, create, and delete target SSL proxies.
target-tcp-proxies- List, create, and delete target TCP proxies.
target-vpn-gateways- read and manipulate Google Compute Engine Classic VPN Gateways.
tpus- List, create, and delete Cloud TPUs.
url-maps- List, create, and delete URL maps.
vpn-tunnels- Read and manipulate Google Compute Engine VPN Tunnels.
zones- List Google Compute Engine zones.
- COMMANDS
-
is one of the following:COMMANDconfig-ssh- Populate SSH config files with Host entries from each instance.
connect-to-serial-port- Connect to the serial port of an instance.
copy-files-
(DEPRECATED)Copy files to and from Google Compute Engine virtual machines via scp. reset-windows-password- Reset and return a password for a Windows machine instance.
scp- Copy files to and from Google Compute Engine virtual machines via scp.
sign-url- Sign specified URL for use with Cloud CDN Signed URLs.
ssh- SSH into a virtual machine instance.
- NOTES
-
These variants are also available:
$ gcloud alpha compute $ gcloud beta compute
- Cloud SDK
- Product Overview
- Documentation
- gcloud CLI Overview
- Quickstarts
- All Quickstarts
- For Linux
- For Debian and Ubuntu
- For Red Hat and CentOS
- For macOS
- For Windows
- How-to Guides
- All How-to Guides
- Installing the SDK
- Setting up the SDK
- Managing SDK Components
- Scripting gcloud CLI Commands
- Enabling accessibility features
- Using gcloud Interactive Shell
- APIs & Reference
- gcloud Reference
- Overview
- gcloud access-context-manager
- gcloud ai-platform
- gcloud alpha
- Overview
- access-context-manager
- ai-platform
- app
- asset
- auth
- bigtable
- billing
- bq
- builds
- cloud-shell
- composer
- compute
- Overview
- accelerator-types
- addresses
- backend-buckets
- backend-services
- commitments
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- external-vpn-gateways
- firewall-rules
- forwarding-rules
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- Overview
- abandon-instances
- create
- create-instance
- delete
- delete-instances
- describe
- export-autoscaling
- get-named-ports
- instance-configs
- list
- list-instances
- recreate-instances
- resize
- rolling-action
- set-autohealing
- set-autoscaling
- set-instance-template
- set-named-ports
- set-target-pools
- stop-autoscaling
- update
- update-autoscaling
- update-instances
- wait-until
- wait-until-stable
- set-named-ports
- unmanaged
- instance-templates
- instances
- Overview
- add-access-config
- add-iam-policy-binding
- add-labels
- add-metadata
- add-resource-policies
- add-tags
- attach-disk
- create
- create-with-container
- delete
- delete-access-config
- describe
- detach-disk
- get-guest-attributes
- get-iam-policy
- get-serial-port-output
- get-shielded-identity
- import
- list
- move
- network-interfaces
- os-inventory
- remove-iam-policy-binding
- remove-labels
- remove-metadata
- remove-resource-policies
- remove-tags
- reset
- resume
- set-disk-auto-delete
- set-iam-policy
- set-machine-type
- set-min-cpu-platform
- set-scheduling
- set-scopes
- simulate-maintenance-event
- start
- stop
- suspend
- tail-serial-port-output
- update
- update-access-config
- update-container
- interconnects
- machine-images
- machine-types
- network-endpoint-groups
- networks
- operations
- os-config
- os-login
- project-info
- regions
- reservations
- reset-windows-password
- resource-policies
- routers
- routes
- scp
- security-policies
- shared-vpc
- Overview
- associated-projects
- disable
- enable
- get-host-project
- list-associated-resources
- organizations
- sign-url
- snapshots
- sole-tenancy
- ssh
- ssl-certificates
- ssl-policies
- start-iap-tunnel
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-tcp-proxies
- target-vpn-gateways
- tpus
- url-maps
- vpn-gateways
- vpn-tunnels
- zones
- config
- container
- Overview
- binauthz
- Overview
- attestations
- attestors
- create-signature-payload
- policy
- clusters
- get-server-config
- hub
- images
- memberships
- node-pools
- operations
- subnets
- data-catalog
- dataflow
- dataproc
- Overview
- autoscaling-policies
- clusters
- jobs
- operations
- workflow-templates
- datastore
- deployment-manager
- dialogflow
- dlp
- domains
- emulators
- endpoints
- filestore
- firebase
- firestore
- functions
- genomics
- healthcare
- Overview
- annotation-stores
- datasets
- dicom-stores
- fhir-stores
- hl7v2-stores
- operations
- help
- iam
- Overview
- list-grantable-roles
- list-testable-permissions
- policies
- roles
- service-accounts
- iap
- init
- interactive
- iot
- Overview
- devices
- registries
- kms
- Overview
- asymmetric-decrypt
- asymmetric-sign
- decrypt
- encrypt
- keyrings
- keys
- locations
- logging
- ml
- ml-engine
- monitoring
- organizations
- projects
- pubsub
- Overview
- snapshots
- subscriptions
- topics
- redis
- remote-build-execution
- resource-manager
- resources
- run
- scc
- scheduler
- search-help
- services
- source
- spanner
- Overview
- databases
- instance-configs
- instances
- operations
- rows
- sql
- survey
- tasks
- web-security-scanner
- gcloud app
- gcloud asset
- gcloud auth
- gcloud beta
- Overview
- access-context-manager
- ai-platform
- app
- Overview
- browse
- create
- deploy
- describe
- domain-mappings
- firewall-rules
- gen-config
- instances
- logs
- migrate-config
- open-console
- operations
- regions
- repair
- services
- ssl-certificates
- update
- versions
- asset
- auth
- bigtable
- billing
- builds
- composer
- compute
- Overview
- accelerator-types
- addresses
- backend-buckets
- backend-services
- commitments
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- external-vpn-gateways
- firewall-rules
- forwarding-rules
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- set-named-ports
- unmanaged
- instance-templates
- instances
- Overview
- add-access-config
- add-iam-policy-binding
- add-labels
- add-metadata
- add-tags
- attach-disk
- create
- create-with-container
- delete
- delete-access-config
- describe
- detach-disk
- get-guest-attributes
- get-iam-policy
- get-serial-port-output
- get-shielded-identity
- list
- move
- network-interfaces
- os-inventory
- remove-iam-policy-binding
- remove-labels
- remove-metadata
- remove-tags
- reset
- set-disk-auto-delete
- set-iam-policy
- set-machine-type
- set-scheduling
- set-scopes
- simulate-maintenance-event
- start
- stop
- tail-serial-port-output
- update
- update-access-config
- update-container
- interconnects
- machine-types
- network-endpoint-groups
- networks
- operations
- os-login
- project-info
- regions
- reservations
- reset-windows-password
- resource-policies
- routers
- routes
- scp
- security-policies
- shared-vpc
- Overview
- associated-projects
- disable
- enable
- get-host-project
- list-associated-resources
- organizations
- sign-url
- snapshots
- sole-tenancy
- ssh
- ssl-certificates
- ssl-policies
- start-iap-tunnel
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-tcp-proxies
- target-vpn-gateways
- tpus
- url-maps
- vpn-gateways
- vpn-tunnels
- zones
- config
- container
- Overview
- binauthz
- Overview
- attestations
- attestors
- create-signature-payload
- policy
- clusters
- get-server-config
- images
- node-pools
- operations
- subnets
- data-catalog
- data-fusion
- dataflow
- dataproc
- Overview
- autoscaling-policies
- clusters
- jobs
- operations
- workflow-templates
- datastore
- debug
- deployment-manager
- dns
- Overview
- dns-keys
- managed-zones
- operations
- policies
- project-info
- record-sets
- domains
- emulators
- endpoints
- error-reporting
- filestore
- firebase
- firestore
- functions
- help
- iam
- init
- interactive
- iot
- Overview
- devices
- registries
- kms
- Overview
- asymmetric-decrypt
- asymmetric-sign
- decrypt
- encrypt
- keyrings
- keys
- locations
- logging
- ml
- ml-engine
- organizations
- projects
- pubsub
- Overview
- snapshots
- subscriptions
- topics
- redis
- resource-manager
- run
- runtime-config
- scheduler
- services
- source
- spanner
- Overview
- databases
- instance-configs
- instances
- operations
- rows
- sql
- tasks
- gcloud bigtable
- gcloud builds
- gcloud components
- gcloud composer
- gcloud compute
- Overview
- accelerator-types
- addresses
- backend-buckets
- backend-services
- commitments
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- firewall-rules
- forwarding-rules
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- set-named-ports
- unmanaged
- instance-templates
- instances
- Overview
- add-access-config
- add-iam-policy-binding
- add-labels
- add-metadata
- add-tags
- attach-disk
- create
- create-with-container
- delete
- delete-access-config
- describe
- detach-disk
- get-iam-policy
- get-serial-port-output
- get-shielded-identity
- list
- move
- network-interfaces
- remove-iam-policy-binding
- remove-labels
- remove-metadata
- remove-tags
- reset
- set-disk-auto-delete
- set-iam-policy
- set-machine-type
- set-scheduling
- set-service-account
- simulate-maintenance-event
- start
- stop
- tail-serial-port-output
- update
- update-access-config
- update-container
- interconnects
- machine-types
- network-endpoint-groups
- networks
- operations
- os-login
- project-info
- regions
- reset-windows-password
- routers
- routes
- scp
- security-policies
- shared-vpc
- Overview
- associated-projects
- disable
- enable
- get-host-project
- list-associated-resources
- organizations
- sign-url
- snapshots
- sole-tenancy
- ssh
- ssl-certificates
- ssl-policies
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-tcp-proxies
- target-vpn-gateways
- tpus
- url-maps
- vpn-tunnels
- zones
- gcloud config
- gcloud container
- gcloud dataflow
- gcloud dataproc
- Overview
- clusters
- jobs
- operations
- workflow-templates
- gcloud datastore
- gcloud debug
- gcloud deployment-manager
- gcloud dns
- gcloud docker
- gcloud domains
- gcloud endpoints
- gcloud feedback
- gcloud filestore
- gcloud firebase
- gcloud functions
- gcloud help
- gcloud iam
- gcloud info
- gcloud init
- gcloud iot
- Overview
- devices
- registries
- gcloud kms
- Overview
- asymmetric-decrypt
- asymmetric-sign
- decrypt
- encrypt
- keyrings
- keys
- locations
- gcloud logging
- gcloud ml
- Overview
- language
- speech
- video
- vision
- gcloud ml-engine
- gcloud organizations
- gcloud projects
- gcloud pubsub
- gcloud redis
- gcloud resource-manager
- gcloud scheduler
- gcloud services
- gcloud source
- gcloud spanner
- Overview
- databases
- instance-configs
- instances
- operations
- rows
- gcloud sql
- gcloud tasks
- gcloud topic
- gcloud version
- Google Cloud Client Libraries
- Resources
- All Resources
- Release Notes
- Usage Statistics
- Support
- Getting Support


