gcloud pubsub topics Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud pubsub topics - manage Cloud Pub/Sub topics
- SYNOPSIS
gcloud pubsub topicsCOMMAND[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Manage Cloud Pub/Sub topics.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$gcloud helpfor details. - COMMANDS
is one of the following:COMMANDadd-iam-policy-binding- Add IAM policy binding to a topic.
create- Creates one or more Cloud Pub/Sub topics.
delete- Deletes one or more Cloud Pub/Sub topics.
describe- Describes a Cloud Pub/Sub topic.
detach-subscription- Detaches one or more Cloud Pub/Sub subscriptions.
get-iam-policy- Get the IAM policy for a Cloud Pub/Sub Topic.
list- Lists Cloud Pub/Sub topics within a project.
list-subscriptions- Lists Cloud Pub/Sub subscriptions from a given topic.
publish- Publishes a message to the specified topic.
remove-iam-policy-binding- Remove IAM policy binding of a topic.
set-iam-policy- Set IAM policy for a topic.
update- Updates an existing Cloud Pub/Sub topic.
- NOTES
- These variants are also available:
gcloudalphapubsubtopicsgcloudbetapubsubtopics
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-05-07 UTC.