/cli

🔧 A CLI for Tuya devices

Primary LanguageJavaScriptMIT LicenseMIT

tuyapi/cli Build Status XO code style

A CLI for Tuya devices.

Installation

npm i @tuyapi/cli -g

Usage

> tuya-cli help

  Usage: cli [options] [command]

  Options:

    -h, --help          output usage information

  Commands:

    link [options]      link a new device (for advanced users only)
    get [options]       get a property on a device
    set [options]       set a property on a device
    list                list all locally saved devices
    list-app [options]  list devices from Tuya Smart app (recommended for new users)
    mock [options]      mock a Tuya device for local testing
    help                output usage information

Development

  1. After cloning, run npm i.
  2. To run tests, run npm test.