You can create a topic on the Kafka server by using the –create command. See the example below
➜ ~ ~ kafka-topics --bootstrap-server localhost:9092 --topic my.first.topic --create
xxxxxxxxxx
$ bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092
xxxxxxxxxx
%KAFKA_HOME%/bin/windows/kafka-topics.bat --create --topic kontext-kafka --bootstrap-server localhost:9092
xxxxxxxxxx
#Kafka docker create topic
create-topics.sh --zookeeper <hostname>:<port> \
--topic <topic-name> \
--partitions <number-of-partitions> \
--replication-factor <number-of-replicating-servers>
xxxxxxxxxx
./kafka-topics.sh --create --zookeeper <ZOOKEEPER_URL:PORT> --replication-factor <NO_OF_REPLICATIONS> --partitions <NO_OF_PARTITIONS> --topic <TOPIC_NAME>