go install github.com/TV4/gcp-tools/cmd/gcp-pubsub-create-topic@latest
Usage
gcp-pubsub-create-topic [-credentials=<...>] -project=<...> <topic>
-credentials string
path to a GCP credentials file
-project string
Pub/Sub project ID
-version
shows version info
GCP credentials file:
https://developers.google.com/identity/protocols/application-default-credentials