Using the Event Streams CLI
The IBM Event Streams service provides a managed instance of Apache Kafka on IBM Cloud. IBM Event Streams comes with an Event Streams plugin for the IBM Developer Tools CLI.
Install the Event Streams plugin
$ ibmcloud plugin install event-streams
$ ibmcloud plugin install event-streams
Looking up 'event-streams' from repository 'IBM Cloud'...
Plug-in 'event-streams 2.0.0' found in repository 'IBM Cloud'
Attempting to download the binary file...
30.95 MiB / 30.95 MiB [===========================================] 100.00% 17s
32455568 bytes downloaded
Installing binary...
OK
Plug-in 'event-streams 2.0.0' was successfully installed into /Users/user1/.bluemix/plugins/event-streams.
Use 'ibmcloud plugin show event-streams' to show its details.Initialize the Event Streams plugin
$ ibmcloud es init
$ ibmcloud es init
API Endpoint: https://abcde1fghijk23lm.svc01.us-south.eventstreams.cloud.ibm.com
OKLogin to IBM Cloud
Create an Event Streams Instance
$ ibmcloud resource service-instance-create <instance-name> messagehub enterprise|standard <region>
Create an API Key for the Event Streams Instance
$ ibmcloud resource service-key-create <key-name> <role-name> --instance-name <instance-name>
Role names include: Manager, Writer, and Reader.
Create a Topic
$ ibmcloud es topic-create greetings -p 1
Display Topic Details
$ ibmcloud es topic greetings
Last updated
Was this helpful?