File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alpha_firestore_import.1
.TH "GCLOUD_ALPHA_FIRESTORE_IMPORT" 1
.SH "NAME"
.HP
gcloud alpha firestore import \- import Cloud Firestore documents from Google Cloud Storage
.SH "SYNOPSIS"
.HP
\f5gcloud alpha 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"
\fB(ALPHA)\fR import Cloud Firestore documents from Google Cloud Storage.
.SH "EXAMPLES"
To import all collection groups from \f5mybucket/my/path\fR, run:
.RS 2m
$ gcloud alpha firestore import gs://mybucket/my/path
.RE
To import a specific set of collections groups asynchronously, run:
.RS 2m
$ gcloud alpha 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 alpha 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 alpha 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 alpha 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 alpha 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 alpha 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"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:
.RS 2m
$ gcloud firestore import
.RE
.RS 2m
$ gcloud beta firestore import
.RE