Publish messages by reading from a file

kcat

kcat -P -t {{topic}} -b {{brokers}} {{path/to/file}}

click the source code to copy