- NAME
-
- gcloud firestore databases update - update the database configuration of a Cloud Firestore database
- SYNOPSIS
-
-
gcloud firestore databases update
[--async
] [--database
=DATABASE
] [--delete-protection
] [--enable-pitr
] [--type
=TYPE
] [GCLOUD_WIDE_FLAG …
]
-
- 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.
-
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:-
provide the argument
--database
on the command line with a fully specified name; -
the default value of argument [--database] is
(default)
with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
--database
=DATABASE
-
ID of the database or fully qualified identifier for the database.
To set the
database
attribute:-
provide the argument
--database
on 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 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
,--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 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 2024-07-30 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"
}]
{
"lastModified": "Last updated 2024-07-30 UTC.",
"confidential": False
}