TuyaAPI / cli

🔧 A CLI for Tuya devices
MIT License
266 stars 43 forks source link

tuya-cli get --id xxxxxx keeps showing the -help content #139

Closed ade-x1 closed 2 years ago

ade-x1 commented 2 years ago

Hi everyone, I am trying to find more info on how to use my multi switch plug and I am interested on seeing what tuya-cli get should show. Unfortunately each time I try the command I only get the help. Any ideas of what's wrong?

tuya-cli get --id xxxxxx Usage: tuya-cli get [options]

get a property on a device

Options: -s, --save save key so you can omit it for subsequent commands --ip ip address of device --id id of device --key [key] key of device --cid [cid_zigbee_device] if specified, use device id of zigbee gateway and cid of subdevice to get its status --dps [dps] property index to get --full get full response payload (default: false) --protocol-version [version] tuya protocol version (default: 3.1) -h, --help display help for command

codetheweb commented 2 years ago

You're missing the --key parameter.