Zigbee2mqtt/bridge/permit_join

I want to switch on/off permit join with a mqtt command.
I tried this:
mosquitto_pub -h 127.0.0.1 -t zigbee2mqtt/bridge/permit_join -m “true”
But that did not work.
What do I need to send?

Try -
mosquitto_pub -t “zigbee2mqtt/bridge/config/permit_join” -m “true”
You don’t need ‘localhost’ but you do need the topic in quotes.

Thanks! works perfect.