Skip to main content

CLI Usage

Setup

If you have not set up the ESP RainMaker command-line interface (CLI), follow the steps here before moving ahead with the usage.

Commands and Usage

Note: On Windows, use python rainmaker.py <sub-command>

  1. Sign up using the following command:
./rainmaker.py signup <email>
  1. Log into the CLI using the following command:
./rainmaker.py login [--email <email>]

If the email is not provided, a browser window will open for login.

  1. After successful login, you can use the Rainmaker CLI.

Running the Utility

Usage

    ./rainmaker.py [OPTIONS] COMMAND [ARGS]...

Options:

No.ParameterDescription
1-h, --helpshow this help message and exit

Commands:

Run ./rainmaker.py {command} -h for additional help

No.ParameterDescription
1signupSign up for ESP Rainmaker
2loginLogin to ESP Rainmaker
3logoutLogout current (logged-in) user
4forgotpasswordReset the password
5getnodesList all nodes associated with the user
6getnodeconfigGet node configuration
7getnodestatusGet online/offline status of the node
8setparamsSet node parameters. Note: Enter JSON data in singe quotes
9getparamsGet node parameters
10removenodeRemove user-node mapping
11provisionProvision the node to join Wi-Fi network
12getmqtthostGet the MQTT Host URL to be used in the firmware
13claimClaim the node connected to the given serial port (get cloud credentials)
14otaupgradeUpload OTA Firmware image and start OTA Upgrade
15getuserinfoGet details of current (logged-in) user
16sharingNode Sharing Operations
17create_cmd_requestCreate a Command Response Request (Beta)
18get_cmd_requestsGet Command Response Requests (Beta)

Note: For ./rainmaker.py setparams command, the JSON data argument needs to be specified differently as per your Host OS.

MacOS/Linux: '{"Light": {"brightness": 50, "output": false}}'

Windows: "{\"Light\": {\"brightness\": 50, \"output\": false}}"