gcloud beta bigtable instances tables update (TABLE : --instance=INSTANCE) [--async] [--deletion-protection] [--row-key-schema-pre-encoded-bytes] [--automated-backup-retention-period=AUTOMATED_BACKUP_RETENTION_PERIOD --automated-backup-locations=[LOCATION,…] | --clear-automated-backup-locations | --disable-automated-backup | --enable-automated-backup] [--change-stream-retention-period=CHANGE_STREAM_RETENTION_PERIOD | --clear-change-stream-retention-period] [--clear-row-key-schema | --row-key-schema-definition-file=ROW_KEY_SCHEMA_DEFINITION_FILE] [--clear-tiered-storage-config | --tiered-storage-infrequent-access-older-than=TIERED_STORAGE_INFREQUENT_ACCESS_OLDER_THAN] [GCLOUD_WIDE_FLAG …]
(BETA) Update an existing new Cloud Bigtable table with the
specified configuration.
gcloud beta bigtable instances tables update my-table --instance=my-instance --deletion-protectionTo disable deletion protection, run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --no-deletion-protectionTo enable a change stream with a retention period of 1 day, or to update your table's change stream retention period to 1 day, run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --change-stream-retention-period=1dTo disable a change stream, run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --clear-change-stream-retention-periodTo enable the default automated backup policy on a table, or update a table to use the default policy (retention_period=7d, frequency=1d), run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --enable-automated-backupTo disable automated backup: run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --disable-automated-backupTo enable or update a custom automated backup policy and configure it to retain backups for 30 days, run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --automated-backup-retention-period=30dTo enable or update a custom automated backup policy and configure it to take backups in only us-central1-b and us-east1-c, run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --automated-backup-locations=us-central1-b,us-east1-cTo empty the automated backup locations list, run:
gcloud beta bigtable instances tables update my-table --instance=my-instance --clear-automated-backup-locations
To set the project attribute:
table on the command line with a fully
specified name;
--project on the command line;
core/project.
TABLE
To set the table attribute:
table on the command line.
--instance=INSTANCEinstance attribute:
table on the command line with a fully
specified name;
--instance on the command line.
--async--deletion-protection--row-key-schema-pre-encoded-bytesencoding.delimitedBytes.delimiter).
Use this to indicate that all binary fields are already encoded in the YAML/JSON file and should not be encoded again.
This field is only used whenrow-key-schema-definition-file is set.
It is ignored if clear-row-key-schema is set.
At most one of these can be specified:
Group for automated backup policy parameters.
--automated-backup-retention-period=AUTOMATED_BACKUP_RETENTION_PERIOD30d for
30 days. Min retention period is 3d and max is 90d.
Setting this flag will enable automated backup for the table.
--automated-backup-locations=[LOCATION,…]projects/{project}/locations/{zone}.
Setting this flag will enable automated backup for the table.
--clear-automated-backup-locations--disable-automated-backup--enable-automated-backup--change-stream-retention-period=CHANGE_STREAM_RETENTION_PERIOD5d or 48h.
--clear-change-stream-retention-period--clear-row-key-schema--row-key-schema-definition-file=ROW_KEY_SCHEMA_DEFINITION_FILEExample YAML:
encoding: delimitedBytes: delimiter: '#' fields: - fieldName: field1 type: bytesType: encoding: raw: {} - fieldName: field2 type: bytesType: encoding: raw: {}
--clear-tiered-storage-config--tiered-storage-infrequent-access-older-than=TIERED_STORAGE_INFREQUENT_ACCESS_OLDER_THAN$ gcloud topic
datetimes for information on absolute duration formats.
--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.
bigtableadmin/v2 API. The full documentation
for this API can be found at: https://cloud.google.com/bigtable/
gcloud bigtable instances tables updategcloud alpha bigtable instances tables 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.