Version: 5.7.1
clc topic
Topic commands are a group of topic operations.
Usage:
bash
clc topic [command] [flags]
Commands
clc topic publish
Publish new messages for a topic.
Usage:
bash
clc topic publish [values] [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the topic. | default |
values | Required | Values to publish. | N/A |
--value- | Optional | Data type of the values. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Example:
bash
clc topic publish -v string string1 string2 --name topic1
clc topic subscribe
Subscribe to a topic for new messages.
Usage:
bash
clc topic subscribe [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the topic. | default |
Example:
bash
clc topic subscribe --name topic1
clc topic destroy
This command will delete the topic and the data in it will not be available anymore.
Usage:
bash
clc topic destroy [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the topic. | default |
--yes | Optional | Skip confirming the destroy operation. | false |
Example:
bash
clc topic destroy --name topic1 --yes