| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/secrets/config/ |
Upload File : |
release_tracks: [ALPHA]
command_type: CONFIG_EXPORT
help_text:
brief: Export the configuration for a Secretmanager secret.
description: |
*{command}* exports the configuration for a Secretmanager secret.
Secret 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
secrets within the project.
Specifying `--path` allows you to export the configuration(s) to
a local directory.
examples: |
To export the configuration for a secret, run:
$ {command} my-secret
To export the configuration for a secret to a file, run:
$ {command} my-secret --path=/path/to/dir/
To export the configuration for a secret in Terraform
HCL format, run:
$ {command} my-secret --resource-format=terraform
To export the configurations for all secrets within a
project, run:
$ {command} --all
arguments:
resource:
help_text: Secret to export the configuration for.
spec: !REF googlecloudsdk.command_lib.secrets.resources:secret