| name | tuya-iot-platform |
| description | Operate the Tuya Developer Platform via tuya-devplat-cli: create products, search products, manage DPs, and more. Wi-Fi + Bluetooth dual-mode only. |
| when_to_use | Use when the user asks to create a Tuya product, get a PID, search products, query or modify DPs (功能点), or perform any operation on the Tuya Developer Platform (platform.tuya.com). |
| id | tuya-iot-platform |
| surfaces | ["cloud"] |
| tags | ["cloud","product","dp","pid","tuya-devplat-cli"] |
| command | tuyaopen.skill.tuyaIotPlatform |
| fallback_commands | [] |
| default_enabled | false |
| related | ["tuyaopen/device-auth"] |
Tuya IoT Platform
Operate the Tuya Developer Platform via tuya-devplat-cli.
Communication type: This skill only targets Wi-Fi + Bluetooth (wf_ble_*) dual-mode solutions.
Operations
Common conventions
CLI binary
The CLI wrapper is generated by TuyaOpen IDE at .tuyaopen/ide/bin/tuya-devplat-cli
(.tuyaopen/ide/bin/tuya-devplat-cli.cmd on Windows). Use this path directly when
tuya-devplat-cli is not in PATH:
.tuyaopen/ide/bin/tuya-devplat-cli --help
The Python helper scripts (scripts/product.py, scripts/manage_dp.py) auto-detect
this binary by searching upward from the current working directory. You can also override
the path via the TUYA_DEVPLAT_CLI environment variable.
Auth
Always verify auth before any operation:
tuya-devplat-cli auth status
If not authenticated, ask the developer to sign in via TuyaOpen IDE → Developer Platform sidebar.
Never run auth login directly — it requires interactive browser input and will hang.
Output format
Always pass --format json for machine-readable output.
Use --fields a,b,c and --max-items N to limit large responses:
tuya-devplat-cli product list --format json --fields id,name,categoryName --max-items 20
Write operations: dry-run → confirm
All mutating commands require a two-phase flow:
tuya-devplat-cli <group> <> [flags] --dry-run --format json
tuya-devplat-cli <group> <> [flags] --confirm <token> --format json