publish.txt 1.0 KB

1234567891011121314151617181920212223242526
  1. Usage: mqtt publish [opts] topic [message]
  2. Available options:
  3. -h/--hostname HOST the broker host
  4. -p/--port PORT the broker port
  5. -i/--client-id ID the client id
  6. -q/--qos 0/1/2 the QoS of the message
  7. -t/--topic TOPIC the message topic
  8. -m/--message MSG the message body
  9. -r/--retain send a retained message
  10. -s/--stdin read the message body from stdin
  11. -M/--multiline read lines from stdin as multiple messages
  12. -u/--username USER the username
  13. -P/--password PASS the password
  14. -C/--protocol PROTO the protocol to use, 'mqtt',
  15. 'mqtts', 'ws' or 'wss'
  16. --key PATH path to the key file
  17. --cert PATH path to the cert file
  18. --ca PATH path to the ca certificate
  19. --insecure do not verify the server certificate
  20. --will-topic TOPIC the will topic
  21. --will-payload BODY the will message
  22. --will-qos 0/1/2 the will qos
  23. --will-retain send a will retained message
  24. -H/--help show this