How to use cmd for putting value in DHT

I want to put key and value pair in ipfs dht manaully.
How can I use ipfs cmd for the same?
I have tried this command

ipfs dht put  ip4/ "abc" 

Output of the above command

Error: invalid key

1 Like

Yes I’ve been curious about this too.

As an alternative I have been considering creating a new instance of a pubsub-router or pubsub-data store (I have a question here asking to clarify the difference Golang equivelent to js-datastore-pubsub)