gcloud secrets Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud secrets - manage secrets on Google Cloud
- SYNOPSIS
gcloud secretsGROUP|COMMAND[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Google Secret Manager allows users to store and retrieve secrets such as APIkeys, certificates, passwords on Google Cloud. Google Secret Manager isintegrated with Cloud IAM and Cloud Audit Logging so users can managepermissions on individual secrets and monitor how these are used.
To learn more about Google Secret Manager, visit:
https://cloud.google.com/secret-manager/
To read API and usage documentation, visit:
https://cloud.google.com/secret-manager/docs/
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$gcloud helpfor details. - GROUPS
is one of the following:GROUPlocations- Manage locations of users' secrets.
replication- Manage secret replication.
versions- Manage secret versions.
- COMMANDS
is one of the following:COMMANDadd-iam-policy-binding- Add IAM policy binding to a secret.
create- Create a new secret.
delete- Delete a secret.
describe- Describe a secret's metadata.
get-iam-policy- Get the IAM policy for the secret.
list- List all secret names.
remove-iam-policy-binding- Remove IAM policy binding for a secret.
set-iam-policy- Set the IAM policy binding for a secret.
update- Update a secret's metadata.
- NOTES
- These variants are also available:
gcloudalphasecretsgcloudbetasecrets
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 2025-07-22 UTC.