UNPKG

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