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_compute_tpus_tpu-vm_create.1
.TH "GCLOUD_COMPUTE_TPUS_TPU\-VM_CREATE" 1



.SH "NAME"
.HP
gcloud compute tpus tpu\-vm create \- create a new Cloud TPU VM node



.SH "SYNOPSIS"
.HP
\f5gcloud compute tpus tpu\-vm create\fR (\fITPU\fR\ :\ \fB\-\-zone\fR=\fIZONE\fR) \fB\-\-version\fR=\fIVERSION\fR [\fB\-\-async\fR] [\fB\-\-boot\-disk\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-data\-disk\fR=[\fImode\fR=\fIMODE\fR],[\fIsource\fR=\fISOURCE\fR]] [\fB\-\-description\fR=\fIDESCRIPTION\fR] [\fB\-\-internal\-ips\fR] [\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-metadata\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-metadata\-from\-file\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-network\fR=\fINETWORK\fR;\ default="default"] [\fB\-\-preemptible\fR] [\fB\-\-queue\-count\fR=\fIQUEUE_COUNT\fR] [\fB\-\-range\fR=\fIRANGE\fR] [\fB\-\-reserved\fR] [\fB\-\-scopes\fR=[\fISCOPES\fR,...]] [\fB\-\-service\-account\fR=\fISERVICE_ACCOUNT\fR] [\fB\-\-shielded\-secure\-boot\fR] [\fB\-\-spot\fR] [\fB\-\-subnetwork\fR=\fISUBNETWORK\fR] [\fB\-\-tags\fR=[\fITAGS\fR,...]] [\fB\-\-accelerator\-type\fR=\fIACCELERATOR_TYPE\fR;\ default="v2\-8"\ |\ \fB\-\-topology\fR=\fITOPOLOGY\fR\ \fB\-\-type\fR=\fITYPE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

Create a new Cloud TPU VM node.



.SH "EXAMPLES"

To create a TPU VM node with ID \f5my\-tpu\fR in the default user project,
network and compute/zone (with other defaults supplied by API), run:

.RS 2m
$ gcloud compute tpus tpu\-vm create my\-tpu
.RE


To create a TPU VM node in a specific network, run:

.RS 2m
$ gcloud compute tpus tpu\-vm create my\-tpu \-\-zone=us\-central1\-a \e
    \-\-network=my\-tf\-network \-\-description='My TPU VM' \e
    \-\-version='v2\-alpha'
.RE

To create a small TPU VM v2 pod, run:

.RS 2m
$ gcloud compute tpus tpu\-vm create my\-tpu \-\-zone=us\-central1\-a \e
    \-\-accelerator\-type='v2\-32' \-\-description='My TPU VM' \e
    \-\-version='v2\-alpha'
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Tpu resource \- Name of the Cloud TPU VM node to create. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.

To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5tpu\fR on the command line with a fully specified name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp

This must be specified.


.RS 2m
.TP 2m
\fITPU\fR

ID of the tpu or fully qualified identifier for the tpu.

To set the \f5tpu\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5tpu\fR on the command line.
.RE
.sp

This positional argument must be specified if any of the other arguments in this
group are specified.

.TP 2m
\fB\-\-zone\fR=\fIZONE\fR

Zone of the Cloud TPU.

If not specified, will use \f5default\fR compute/zone.


To set the \f5zone\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5tpu\fR on the command line with a fully specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-zone\fR on the command line;
.IP "\(bu" 2m
set the property \f5compute/zone\fR.
.RE
.sp


.RE
.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m
\fB\-\-version\fR=\fIVERSION\fR

Runtime version for the TPU, such as \f52.3\fR.

For a list of available versions run:

\f5gcloud compute tpus tpu\-vm versions list\fR


.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-async\fR

Return immediately, without waiting for the operation in progress to complete.

.TP 2m
\fB\-\-boot\-disk\fR=[\fIKEY\fR=\fIVALUE\fR,...]

Specifies the boot disk configuration.

.RS 2m
$ gcloud compute tpus tpu\-vm create \e
      \-\-boot\-disk kms\-key=<full_kms_key_name_here>
.RE

The following keys are allowed:

.RS 2m
.TP 2m
\fBkms\-key\fR
Specifies the fully qualified Cloud KMS cryptokey name which will be used to
protect the disk. KMS cryptokey name format:
projects/<kms\-project>/locations/<kms\-location>/keyRings/<kms\-keyring>/cryptoKeys/<key\-name>

.RE
.sp
.TP 2m
\fB\-\-data\-disk\fR=[\fImode\fR=\fIMODE\fR],[\fIsource\fR=\fISOURCE\fR]

Additional data disks for the TPU VM.

This flag must be repeated to provide multiple data disks. For example:

.RS 2m
$ gcloud compute tpus tpu\-vm create \e
    \-\-data\-disk \e
    source=projects/my\-project/zones/us\-central1\-c/disks/my\-disk,\e
mode=read\-only
.RE

The following keys are allowed:

.RS 2m
.TP 2m
\fBsource\fR
Specifies the full path to an existing disk. Required. The disk must be in the
same zone.

.TP 2m
\fBmode\fR
Specifies the mode in which to attach this disk. Valid options are
\'read\-write', 'read\-only'. If not specified, the default is 'read\-write'.

.RE
.sp
.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR

Text description of the TPU.

.TP 2m
\fB\-\-internal\-ips\fR

Indicate that the IP addresses for the node should be internal. The default is
that external IP addresses will be associated with the TPU workers.

.TP 2m
\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]

Resource labels to represent user\-provided metadata. See
https://cloud.google.com/compute/docs/labeling\-resources for details.

.TP 2m
\fB\-\-metadata\fR=[\fIKEY\fR=\fIVALUE\fR,...]

List of comma\-separated metadata key\-value pairs for the Cloud TPU VM node.
Example: \f5\-\-metadata='key1=value1,key2=value2'\fR

.TP 2m
\fB\-\-metadata\-from\-file\fR=[\fIKEY\fR=\fIVALUE\fR,...]

Same as \f5\-\-metadata\fR except the value for the entry will be read from a
local file. Example: \f5\-\-metadata\-from\-file='key1=value1.txt'\fR

.TP 2m
\fB\-\-network\fR=\fINETWORK\fR; default="default"

Network that this TPU will be a part of.

.TP 2m
\fB\-\-preemptible\fR

If provided, the TPU will be preemptible and time\-limited. It may be preempted
to free up resources for standard TPUs, and will only be able to run for a
limited amount of time.

Preemptible TPUs cannot be restarted.

.TP 2m
\fB\-\-queue\-count\fR=\fIQUEUE_COUNT\fR

Specifies the networking queue count for TPU VM instances. Both Rx and Tx queues
will be set to this number. If it's not specified, a default queue count will be
assigned. For Virtio\-net, each interface will get min(floor(#vCPU / #vNIC), 32)
queues. For gVNIC, each interface will get min(floor(#vCPU / #vNIC / 2), 16)
queues.

.TP 2m
\fB\-\-range\fR=\fIRANGE\fR

CIDR Range for the TPU.

The IP range that the TPU will select an IP address from. Must be in CIDR
notation and a \f5/29\fR range, for example \f5192.168.0.0/29\fR. Errors will
occur if the CIDR range has already been used for a currently existing TPU, the
CIDR range conflicts with any networks in the user's provided network, or the
provided network is peered with another network that is using that CIDR range.

.TP 2m
\fB\-\-reserved\fR

When specified, will attempt to create the TPU node under reservations made in
the current project. The reservations can be made separately but used in
aggregated form. i.e., the user can make a reservation of 128 V2 TPUs and later
on make another reservation of 128 V2 TPUs then creates a v2\-256 TPU instance.
If there exists no reservation or not sufficient amount of reserved cores under
the project, the request will fail due to lack of capacity.

.TP 2m
\fB\-\-scopes\fR=[\fISCOPES\fR,...]

List of comma\-separated scopes to be made available for the service account.

.TP 2m
\fB\-\-service\-account\fR=\fISERVICE_ACCOUNT\fR

Email address of the service account. If empty, default Google Compute Engine
service account will be used.

.TP 2m
\fB\-\-shielded\-secure\-boot\fR

Specifies that the TPU instances are created with secure boot enabled. This
implicitly makes them Shielded VM instances.

.TP 2m
\fB\-\-spot\fR

If specified, create this VM as a spot VM. Spot VMs make unused capacity
available at highly discounted rates. Spot VMs may be preempted at any time if
the capacity is needed, but unless preempted there is no limit on runtime
duration. Spot VM TPUs cannot be restarted, and must be recreated again.

.TP 2m
\fB\-\-subnetwork\fR=\fISUBNETWORK\fR

Subnetwork that this TPU will be a part of.

.TP 2m
\fB\-\-tags\fR=[\fITAGS\fR,...]

Tags to apply to the TPU Node. Tags are used to identify valid sources or
targets for network firewalls. See
https://cloud.google.com/vpc/docs/add\-remove\-network\-tags for more details.

.TP 2m

Specify a TPU node in either chips or cores

At most one of these can be specified:


.RS 2m
.TP 2m

Core based TPU configuration


.RS 2m
.TP 2m
\fB\-\-accelerator\-type\fR=\fIACCELERATOR_TYPE\fR; default="v2\-8"

TPU accelerator type for the TPU. If not specified, this defaults to
\f5v2\-8\fR.

For a list of available accelerator types run:

\f5gcloud compute tpus tpu\-vm accelerator\-types list\fR

.RE
.sp
.TP 2m

Chip based TPU configuration


.RS 2m
.TP 2m
\fB\-\-topology\fR=\fITOPOLOGY\fR

Chip topology for TPU.

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m
\fB\-\-type\fR=\fITYPE\fR

Type of TPU. \fITYPE\fR must be one of: \fBv2\fR, \fBv3\fR, \fBv4\fR.

This flag argument must be specified if any of the other arguments in this group
are specified.


.RE
.RE
.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 "API REFERENCE"

This command uses the \fBtpu/v2\fR API. The full documentation for this API can
be found at: https://cloud.google.com/tpu/



.SH "NOTES"

This variant is also available:

.RS 2m
$ gcloud alpha compute tpus tpu\-vm create
.RE