gcloud beta firestore databases update

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 theproject attribute:

  • provide the argument--database on the command line with a fullyspecified name;
  • the default value of argument [--database] is(default) with afully specified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.
--database=DATABASE
ID of the database or fully qualified identifier for the database.

To set thedatabase attribute:

  • provide the argument--database on the command line;
  • the default value of argument [--database] is(default).
--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.TYPE must 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 help for details.

API REFERENCE
This command uses thefirestore/v1 API. 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:
gcloudfirestoredatabasesupdate
gcloudalphafirestoredatabasesupdate

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.