- INFORMATION
- 
gcloud alpha pubsub topicsis supported in universe domainuniverse; however, some of the values used in the help text may not be available. Command examples may not work as-is and may requires changes before execution.
- NAME
- 
- gcloud alpha pubsub topics - manage Cloud Pub/Sub topics
 
- SYNOPSIS
- 
- 
gcloud alpha pubsub topicsGROUP|COMMAND[GCLOUD_WIDE_FLAG …]
 
- 
- DESCRIPTION
- 
(ALPHA)Manage Cloud Pub/Sub topics.
- GCLOUD WIDE FLAGS
- 
These flags are available to all commands: --help.Run $ gcloud helpfor details.
- GROUPS
- 
GROUP- config
- 
(ALPHA)Manage Pub/Sub topic configurations.
 
- COMMANDS
- 
COMMAND- add-iam-policy-binding
- 
(ALPHA)Add IAM policy binding to a topic.
- create
- 
(ALPHA)Creates one or more Cloud Pub/Sub topics.
- delete
- 
(ALPHA)Deletes one or more Cloud Pub/Sub topics.
- describe
- 
(ALPHA)Describes a Cloud Pub/Sub topic.
- detach-subscription
- 
(ALPHA)Detaches one or more Cloud Pub/Sub subscriptions.
- get-iam-policy
- 
(ALPHA)Get the IAM policy for a topic.
- list
- 
(ALPHA)Lists Cloud Pub/Sub topics within a project.
- list-snapshots
- 
(ALPHA)Lists Cloud Pub/Sub snapshots from a given topic.
- list-subscriptions
- 
(ALPHA)Lists Cloud Pub/Sub subscriptions from a given topic.
- publish
- 
(ALPHA)Publishes a message to the specified topic.
- remove-iam-policy-binding
- 
(ALPHA)Remove IAM policy binding of a topic.
- set-iam-policy
- 
(ALPHA)Set the IAM policy for a Cloud Pub/Sub Topic.
- update
- 
(ALPHA)Updates an existing Cloud Pub/Sub topic.
 
- NOTES
- 
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud pubsub topicsgcloud beta pubsub topics
      gcloud alpha pubsub topics
  
  
  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 2025-05-07 UTC.
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]