danube-admin: Topics Commands
The danube-admin
tool provides commands to manage and view information about topics in your Danube cluster. Below is the documentation for the commands related to topics.
Commands
danube-admin topics list NAMESPACE
Get the list of topics in a specified namespace.
Usage:
Description:
This command retrieves and displays all topics within a specified namespace. Replace NAMESPACE
with the name of the namespace you want to query.
Example Output:
danube-admin topics create TOPIC
Create a non-partitioned topic.
Usage:
Description:
This command creates a new non-partitioned topic with the specified name. Replace TOPIC
with the desired name for the new topic.
Example Output:
danube-admin topics delete TOPIC
Delete a specified topic.
Usage:
Description:
This command deletes the specified topic. Replace TOPIC
with the name of the topic you want to delete.
Example Output:
danube-admin topics subscriptions TOPIC
Get the list of subscriptions on a specified topic.
Usage:
Description:
This command retrieves and displays all subscriptions associated with a specified topic. Replace TOPIC
with the name of the topic you want to query.
Example Output:
danube-admin topics unsubscribe --subscription SUBSCRIPTION TOPIC
Delete a subscription from a topic.
Usage:
Description:
This command deletes a subscription from a specified topic. Replace SUBSCRIPTION
with the name of the subscription and TOPIC
with the name of the topic.
Example Output:
Error Handling
If there is an issue with connecting to the cluster or processing the request, the CLI will output an error message. Ensure your Danube cluster is running and accessible, and check your network connectivity.
Examples
Here are a few example commands for quick reference:
- List topics in a namespace:
- Create a topic:
- Delete a topic:
- Unsubscribe from a topic:
- List subscriptions for a topic:
- Create a new subscription for a topic:
For more detailed information or help with the danube-admin
, you can use the --help
flag with any command.
Example: