clc topic

Topic commands are a group of topic operations.

Usage:

clc topic [command] [flags]

clc topic publish

Publish new messages for a topic.

Usage:

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-type, -v

Optional

Data type of the values. One of: string, bool, json, i8, i16, i32, i64, f32, f64

string

Example:

clc topic publish -v string string1 string2 --name topic1

clc topic subscribe

Subscribe to a topic for new messages.

Usage:

clc topic subscribe [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the topic.

default

Example:

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:

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:

clc topic destroy --name topic1 --yes