Pub/Sub

List Topics

gcloud pubsub topics list --format "table(name)"

List Subscriptions

gcloud pubsub subscriptions list --format "table(name, topic)"

Create Topic

gcloud pubsub topics create prod-app-pub

Create Subscription

gcloud pubsub subscriptions create prod-app-sub --topic prod-app-pub