gcloud firestore import (original) (raw)
NAME
gcloud firestore import - import Cloud Firestore documents from Google Cloud Storage
SYNOPSIS
gcloud firestore import [INPUT_URI_PREFIX](#INPUT%5FURI%5FPREFIX) [[--async](#--async)] [[--collection-ids](#--collection-ids)=[COLLECTION_GROUP_IDS,…]] [[--database](#--database)=DATABASE; default="(default)"] [[--namespace-ids](#--namespace-ids)=[NAMESPACE_IDS,…]] [[GCLOUD_WIDE_FLAG](#GCLOUD-WIDE-FLAGS) …]
DESCRIPTION
import Cloud Firestore documents from Google Cloud Storage.
EXAMPLES
To import all collection groups from mybucket/my/path, run:
gcloud firestore import gs://mybucket/my/pathTo import a specific set of collections groups asynchronously, run:
gcloud firestore import gs://mybucket/my/path --collection-ids='specific collection group1','specific
collection group2' --async
To import all collection groups from certain namespace, run:
gcloud firestore import gs://mybucket/my/path --namespace-ids='specific namespace id'POSITIONAL ARGUMENTS
INPUT_URI_PREFIX
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.
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--collection-ids=[COLLECTION_GROUP_IDS,…]
List specifying which collection groups will be included in the operation. When omitted, all collection groups are included.
For example, to operate on only the customers andorders collections groups:
gcloud firestore import --collection-ids='customers','orders'--database=DATABASE; default="(default)"
The database to operate on. The default value is (default).
For example, to operate on database foo:
gcloud firestore import --database='foo'--namespace-ids=[NAMESPACE_IDS,…]
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 customers andorders namespaces:
gcloud firestore import --namespaces-ids='customers','orders'GCLOUD WIDE FLAGS
These flags are available to all commands: [--access-token-file](/sdk/gcloud/reference#--access-token-file),[--account](/sdk/gcloud/reference#--account), [--billing-project](/sdk/gcloud/reference#--billing-project),[--configuration](/sdk/gcloud/reference#--configuration),[--flags-file](/sdk/gcloud/reference#--flags-file),[--flatten](/sdk/gcloud/reference#--flatten), [--format](/sdk/gcloud/reference#--format), [--help](/sdk/gcloud/reference#--help), [--impersonate-service-account](/sdk/gcloud/reference#--impersonate-service-account),[--log-http](/sdk/gcloud/reference#--log-http),[--project](/sdk/gcloud/reference#--project), [--quiet](/sdk/gcloud/reference#--quiet), [--trace-token](/sdk/gcloud/reference#--trace-token), [--user-output-enabled](/sdk/gcloud/reference#--user-output-enabled),[--verbosity](/sdk/gcloud/reference#--verbosity).
Run $ [gcloud help](/sdk/gcloud/reference) for details.
NOTES
These variants are also available:
gcloud alpha firestore importgcloud beta firestore import