1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/alpha/firestore/import
2022-03-01 04:29:52 +00:00

62 lines
2.1 KiB
Text

NAME
gcloud alpha firestore import - import Cloud Firestore documents from
Google Cloud Storage
SYNOPSIS
gcloud alpha firestore import INPUT_URI_PREFIX [--async]
[--collection-ids=[COLLECTION_IDS,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) import Cloud Firestore documents from Google Cloud Storage
EXAMPLES
To import all collection groups from mybucket/my/path, run:
$ gcloud alpha firestore import gs://mybucket/my/path
To import a specific set of collections groups asynchronously, run:
$ gcloud alpha firestore import gs://mybucket/my/path \
--collection-ids='specific collection group1','specific
collection group2' --async
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 alpha firestore operations describe'
command.
FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
--collection-ids=[COLLECTION_IDS,...]
A list specifying which collections will be included in the operation.
When omitted, all collections are included.
For example, to operate on only the 'customers' and 'orders'
collections:
$ gcloud alpha firestore import --collection-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
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:
$ gcloud firestore import
$ gcloud beta firestore import