gcloud secrets versions

NAME
gcloud secrets versions - manage secret versions
SYNOPSIS
gcloud secrets versionsCOMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
Manage secret versions on Google Cloud.
GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
access
Access a secret version's data.
add
Create a new version of an existing secret.
describe
Describe metadata about the secret version.
destroy
Destroy a secret version's metadata and secret data.
disable
Disable the version of the provided secret.
enable
Enable the version of the provided secret.
list
List all versions for a secret.
NOTES
These variants are also available:
gcloudalphasecretsversions
gcloudbetasecretsversions

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-06 UTC.