ksqldb CLI Console
The ksqlDB CLI provides command-line access for managing KSQL commands, viewing connectors, topics, streams, tables, and more.
To access the ksqlDB CLI, use the following command:
docker-compose exec ksqldb-cli ksql http://ksqldb-server:8088
Once inside the ksqlDB CLI prompt, you can set environment-specific variables as needed. For example, to configure the offset setting, use:
SET 'auto.offset.reset' = 'earliest';
This command sets the offset to the earliest, ensuring that the CLI reads from the beginning of each topic.
To quit the ksqlDB CLI, type exit and press enter.
For further information on ksqlDB CLI configuration, please refer to the documentation at click here.
For further documentation on ksqlDB, please refer to the documentation at click here.