docker compose up
docker exec -it broker /bin/bash
kafka-topics --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic name
kafka-console-consumer --bootstrap-server localhost:9092 --topic name
kafka-topics --list --bootstrap-server localhost:9092
docker exec -it ksqldb-cli ksql http://ksqldb-server:8088
SPOOL filename.txt;
SPOOL OFF to disable
The file is saved in the Docker container files (use Visual Studio code to get it easily) Containers/ksqldbqueriescli/ksqldb-cli/Files/home/appuser