39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
release_tracks: [ALPHA]
|
|
command_type: CONFIG_EXPORT
|
|
help_text:
|
|
brief: Export the configuration for a Google BigQuery table.
|
|
description: |
|
|
*{command}* exports the configuration for a Google BigQuery table.
|
|
|
|
Table configurations can be exported in
|
|
Kubernetes Resource Model (krm) or Terraform HCL formats. The
|
|
default format is `krm`.
|
|
|
|
Specifying `--all` allows you to export the configurations for all
|
|
tables within the project.
|
|
|
|
Specifying `--path` allows you to export the configuration(s) to
|
|
a local directory.
|
|
examples: |
|
|
To export the configuration for a table, run:
|
|
|
|
$ {command} my-table
|
|
|
|
To export the configuration for a table to a file, run:
|
|
|
|
$ {command} my-table --path=/path/to/dir/
|
|
|
|
To export the configuration for a table in Terraform
|
|
HCL format, run:
|
|
|
|
$ {command} my-table --resource-format=terraform
|
|
|
|
To export the configurations for all tables within a
|
|
project, run:
|
|
|
|
$ {command} --all
|
|
arguments:
|
|
resource:
|
|
help_text: Table to export the configuration for.
|
|
spec: !REF googlecloudsdk.command_lib.bq.resources:table
|