gcloud beta firestore databases update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta firestore databases update - update the database configuration of a Cloud Firestore database
- SYNOPSIS
gcloud beta firestore databases update[--async][--database=DATABASE][--delete-protection][--enable-pitr][--type=TYPE][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)Update the database configuration of a Cloud Firestoredatabase.- EXAMPLES
- The following command updates the database type of a Cloud Firestore database.
gcloudbetafirestoredatabasesupdate--type=firestore-native - FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.
- Database resource - Cloud Firestore database to update. This represents a Cloudresource. (NOTE) Some attributes are not given arguments in this group but canbe set in other ways.
To set the
projectattribute:- provide the argument
--databaseon the command line with a fullyspecified name; - the default value of argument [--database] is
(default)with afully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
--database=DATABASE- ID of the database or fully qualified identifier for the database.
To set the
databaseattribute:- provide the argument
--databaseon the command line; - the default value of argument [--database] is
(default).
- provide the argument
- provide the argument
--delete-protection- If set to true, the Firestore database will be updated to have database deleteprotection enabled. A database with delete protection enabled cannot be deleted.You can disable the delete protection via --no-delete-protection.
--enable-pitr- If set to true, the Firestore database will be updated to enable Point In TimeRecovery. You can disable the this feature via --no-enable-pitr.
--type=TYPE- The database type.
TYPEmust be one of:datastore-mode,firestore-native.
- 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 helpfor details. - API REFERENCE
- This command uses the
firestore/v1API. The full documentation forthis API can be found at:https://cloud.google.com/firestore - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudfirestoredatabasesupdategcloudalphafirestoredatabasesupdate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.