Skip to content

Commit 105dfec

Browse files
Update README.md
1 parent 3f4b76b commit 105dfec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickstarts/pubsub-helloworld/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ This deploys and activate the PubSub hello World Functions.
6363
Once deployed, to try the sample use the `gcloud` CLI to publish a message to the `topic-name` topic:
6464

6565
```
66-
gcloud alpha pubsub topics publish topic-name 'YourName'
66+
gcloud alpha pubsub topics publish topic-name --message='YourName'
6767
```
6868

6969
Open the Functions logs in the Firebase Console, you should see a messages that reads "Hello YourName".
7070

7171
Then you can also publish a message to the `another-topic-name` topic using JSON data:
7272

7373
```
74-
gcloud alpha pubsub topics publish another-topic-name '{"name":"YourName"}'
74+
gcloud alpha pubsub topics publish another-topic-name --message='{"name":"YourName"}'
7575
```
7676

7777
Open the Functions logs in the Firebase Console, you should see a messages that reads "Hello YourName".

0 commit comments

Comments
 (0)