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/394/help/man/man1/gcloud_firestore_import.1
.TH "GCLOUD_FIRESTORE_IMPORT" 1



.SH "NAME"
.HP
gcloud firestore import \- import Cloud Firestore documents from Google Cloud Storage



.SH "SYNOPSIS"
.HP
\f5gcloud firestore import\fR \fIINPUT_URI_PREFIX\fR [\fB\-\-async\fR] [\fB\-\-collection\-ids\fR=[\fICOLLECTION_IDS\fR,...]] [\fB\-\-database\fR=\fIDATABASE\fR;\ default="(default)"] [\fB\-\-namespace\-ids\fR=[\fINAMESPACE_IDS\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

import Cloud Firestore documents from Google Cloud Storage.



.SH "EXAMPLES"

To import all collection groups from \f5mybucket/my/path\fR, run:

.RS 2m
$ gcloud firestore import gs://mybucket/my/path
.RE

To import a specific set of collections groups asynchronously, run:

.RS 2m
$ gcloud firestore import gs://mybucket/my/path \e
    \-\-collection\-ids='specific collection group1','specific
 collection group2' \-\-async
.RE

To import all collection groups from certain namespace, run:

.RS 2m
$ gcloud firestore import gs://mybucket/my/path \e
    \-\-namespace\-ids='specific namespace id'
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fIINPUT_URI_PREFIX\fR

Location of the import files.

This location is the 'output_uri_prefix' field of a previous export, and can be
found via the 'gcloud firestore operations describe' command.


.RE
.sp

.SH "FLAGS"

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

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

.TP 2m
\fB\-\-collection\-ids\fR=[\fICOLLECTION_IDS\fR,...]

List specifying which collections will be included in the operation. When
omitted, all collections are included.

For example, to operate on only the \f5customers\fR and \f5orders\fR
collections:

.RS 2m
$ gcloud firestore import \-\-collection\-ids='customers','orders'
.RE

.TP 2m
\fB\-\-database\fR=\fIDATABASE\fR; default="(default)"

The database to operate on. The default value is \f5(default)\fR.

For example, to operate on database \f5foo\fR:

.RS 2m
$ gcloud firestore import \-\-database='foo'
.RE

.TP 2m
\fB\-\-namespace\-ids\fR=[\fINAMESPACE_IDS\fR,...]

List specifying which namespaces will be included in the operation. When
omitted, all namespaces are included.

This is only supported for Datastore Mode databases.

For example, to operate on only the \f5customers\fR and \f5orders\fR namespaces:

.RS 2m
$ gcloud firestore import \-\-namespaces\-ids='customers','orders'
.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 "NOTES"

These variants are also available:

.RS 2m
$ gcloud alpha firestore import
.RE

.RS 2m
$ gcloud beta firestore import
.RE