Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 658 Bytes

SETUP.md

File metadata and controls

7 lines (4 loc) · 658 Bytes

Linking a Tuya Device

  1. First, acquire API credentials by following this guide. The process should just take a few minutes.

  2. Next, install the CLI tool by running npm i @tuyapi/cli -g. If it returns an error, you may need to prefix the command with sudo. (Tip: using sudo to install global packages is not considered best practice. See this NPM article for some help.)

  3. Run tuya-cli link-wizard. It will walk you through the process of linking your device(s). When it's finished, copy the resulting device(s) id and localKey.