gcloud firestore databases update (original) (raw)

gcloud firestore databases update

NAME

gcloud firestore databases update - update the database configuration of a Cloud Firestore database

SYNOPSIS

gcloud firestore databases update [[--async](#--async)] [[--concurrency-mode](#--concurrency-mode)=CONCURRENCY_MODE] [[--database](#--database)=DATABASE] [[--delete-protection](#--delete-protection)] [[--enable-pitr](#--enable-pitr)] [[--type](#--type)=TYPE] [[GCLOUD_WIDE_FLAG](#GCLOUD-WIDE-FLAGS) …]

DESCRIPTION

Update the database configuration of a Cloud Firestore database.

EXAMPLES

The following command updates the database type of a Cloud Firestore database.

gcloud firestore databases update --type=firestore-native

FLAGS

--async

Return immediately, without waiting for the operation in progress to complete.

--concurrency-mode=CONCURRENCY_MODE

The concurrency control mode to use for this database.CONCURRENCY_MODE must be one of:optimistic, pessimistic.

Database resource - Cloud Firestore database to update. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

--database=DATABASE

ID of the database or fully qualified identifier for the database.

To set the database attribute:

--delete-protection

If set to true, the Firestore database will be updated to have database delete protection 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 Time Recovery. 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](/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.

API REFERENCE

This command uses the firestore/v1 API. The full documentation for this API can be found at: https://cloud.google.com/firestore

NOTES

These variants are also available:

gcloud alpha firestore databases update
gcloud beta firestore databases update

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 2026-05-27 UTC.