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_alloydb_clusters_import.1
.TH "GCLOUD_ALLOYDB_CLUSTERS_IMPORT" 1



.SH "NAME"
.HP
gcloud alloydb clusters import \- import data into an AlloyDB cluster from Google Cloud Storage



.SH "SYNOPSIS"
.HP
\f5gcloud alloydb clusters import\fR \fICLUSTER\fR \fB\-\-gcs\-uri\fR=\fIGCS_URI\fR \fB\-\-region\fR=\fIREGION\fR (\fB\-\-sql\fR\ |\ [\fB\-\-csv\fR\ \fB\-\-table\fR=\fITABLE\fR\ :\ \fB\-\-columns\fR=\fICOLUMNS\fR\ \fB\-\-escape\-character\fR=\fIESCAPE_CHARACTER\fR\ \fB\-\-field\-delimiter\fR=\fIFIELD_DELIMITER\fR\ \fB\-\-quote\-character\fR=\fIQUOTE_CHARACTER\fR]) [\fB\-\-async\fR] [\fB\-\-database\fR=\fIDATABASE\fR] [\fB\-\-user\fR=\fIUSER\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

Import data into an AlloyDB cluster from Google Cloud Storage.



.SH "EXAMPLES"

To import data into a cluster, run:

.RS 2m
$ gcloud alloydb clusters import my\-cluster \-\-region=us\-central1 \e
    \-\-database=my\-database \e
    \-\-gcs\-uri=gs://my\-bucket/source\-file\-path \-\-sql \-\-user=my\-user"
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fICLUSTER\fR

AlloyDB cluster ID


.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

URI of the source file for import.

This must be specified.


.RS 2m
.TP 2m
\fB\-\-gcs\-uri\fR=\fIGCS_URI\fR

Path to the Google Cloud Storage file from which import has to be done.

.RE
.sp
.TP 2m
\fB\-\-region\fR=\fIREGION\fR

Regional location (e.g. \f5asia\-east1\fR, \f5us\-east1\fR). See the full list
of regions at https://cloud.google.com/sql/docs/instance\-locations.

.TP 2m

Import options for the cluster.

Exactly one of these must be specified:


.RS 2m
.TP 2m

SQL import options for the cluster.


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

Specify source file type.

.RE
.sp
.TP 2m

CSV import options for the cluster.


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

Specify source file type.

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

.TP 2m
\fB\-\-table\fR=\fITABLE\fR

Table name to which the data has to be imported.

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

.TP 2m
\fB\-\-columns\fR=\fICOLUMNS\fR

Comma\-separated list of column names to be used for import.

.TP 2m
\fB\-\-escape\-character\fR=\fIESCAPE_CHARACTER\fR

Escape character in the source file.

.TP 2m
\fB\-\-field\-delimiter\fR=\fIFIELD_DELIMITER\fR

Field delimiter in the source file.

.TP 2m
\fB\-\-quote\-character\fR=\fIQUOTE_CHARACTER\fR

Quote character in the source file.


.RE
.RE
.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\-\-database\fR=\fIDATABASE\fR

Database name.

.TP 2m
\fB\-\-user\fR=\fIUSER\fR

Database user for the import.


.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"

These variants are also available:

.RS 2m
$ gcloud alpha alloydb clusters import
.RE

.RS 2m
$ gcloud beta alloydb clusters import
.RE