- NAME
-
- gcloud firestore import - import Cloud Firestore documents from Google Cloud Storage
- SYNOPSIS
-
-
gcloud firestore import
INPUT_URI_PREFIX
[--async
] [--collection-ids
=[COLLECTION_IDS
,…]] [--database
=DATABASE
; default="(default)"] [--namespace-ids
=[NAMESPACE_IDS
,…]] [GCLOUD_WIDE_FLAG …
]
-
- 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/path
To import a specific set of collections groups asynchronously, run:
gcloud firestore import gs://mybucket/my/path --collection-ids='specific collection group1','specific
collection group2' --asyncTo 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_IDS
,…]-
List specifying which collections will be included in the operation. When
omitted, all collections are included.
For example, to operate on only the
customers
andorders
collections: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
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
-
These variants are also available:
gcloud alpha firestore import
gcloud beta firestore import
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-02-06 UTC.",
"state": ""
}