Skip to main content
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:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the topic.default
valuesRequiredValues to publish.N/A
--value-type, -vOptionalData type of the values. One of: string, bool, json, i8, i16, i32, i64, f32, f64string

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:

ParameterRequiredDescriptionDefault
--name, -nOptionalName 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:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the topic.default
--yesOptionalSkip confirming the destroy operation.false

Example:

bash
clc topic destroy --name topic1 --yes