Discovery activating over console

Hello,
how do I reformulate the command below to enter it directly into the console?

Activate Discovery

mosquitto_pub -t “home/OpenMQTTGateway/commands/MQTTtoSYS/config” -m ‘{“disc”:true}’

Hello,

You can’t send command like this to the console. You can either do it by MQTT or use the HA MQTT discovery (if you use HA).