RainMaker CLI User Guide
The ESP RainMaker CLI is a Python-based command-line tool that allows developers and users to manage and interact with their ESP RainMaker devices. It is primarily used for testing and validation on public RainMaker deployments. It can also be used with private deployments by creating custom "profiles".
- To understand the difference between RainMaker CLI and Admin CLI, please click here.
- This guide refers to the RainMaker CLI User Guide on GitHub.
Setup RainMaker CLI
Installing Python 3
If you have Python 3 already installed, just move on to the next section. Otherwise, follow these steps:
- Download the latest version of Python 3 for your OS from the Python website.
- Run the OS specific installer to install Python 3.
- Verify the installation by running following command on terminal.
$ python3 --version
On Windows, use python-- version to verify the installation.
Installing Dependencies
We will have to first install pip, which is a package installer for Python, and then install the dependencies. Here are the steps:
Install pip
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python3 get-pip.py
On Windows, use python get-pip.py for pip installation.
Install RainMaker CLI
There are two ways to install RainMaker CLI:
- Install via PyPI.
- Git clone esp-rainmaker-cli project into your local machine directly.
Install via PyPI
ESP RainMaker CLI is available on the Python Package Index (PyPI). It can be installed using pip.
Global Installation
$ pip install esp-rainmaker-cli
Installation via Virtual Environment (recommended)
### Create a virtual environment
$ python3 -m venv rainmaker-env
### Activate the virtual environment
### On macOS/Linux:
$ source rainmaker-env/bin/activate
### On Windows:
$ rainmaker-env\Scripts\activate
### Install ESP RainMaker CLI
$ pip install esp-rainmaker-cli
### When finished, you can deactivate the virtual environment
$ deactivate
Git Clone esp-rainmaker-cli SDK
Alternatively, you can head over to esp-rainmaker-cli and git clone the project into your local machine directly.
$ git clone https://github.com/espressif/esp-rainmaker-cli.git
$ cd /path/to/esp-rainmaker-cli/
$ python3 -m pip install -e .
python3 -m pip install -e . do?python3 -m pip install -e . installs the package in editable (development) mode, so that any changes made to the source code in the current directory are immediately reflected when the package or its CLI command is run, without needing to reinstall.