Please fork, branch and pull-request any changes you'd like to make.
-
Clone or Fork this Repository
git clone https://github.com/azure/iotedgedev.git -
Rename
.env.tmpin the root of the repo to.envand set theIOTHUB_CONNECTION_STRINGandDEVICE_CONNECTION_STRINGvalues to settings from your IoT Hub and Edge Device. To set these values you could runiotedgedev azurein the root of the repo. -
Install Microsoft Visual C++ Build Tools
-
Run
npm installfrom the root directory to install the required npm packages for iothub-explorer calls. -
Install OpenSSL 1.1.0g
- Windows
- Download from OpenSSL's website
- Extract the downloaded .tar.gz to C:\OpenSSL\
- Windows
-
Make sure both Python 2.7 and Python 3.6 are installed
-
Install dependencies
Run the following command to install all the dependencies needed to build iotedgedev and run the tests.
pip install -r requirements_dev.txt -
Editable Mode
Run the following command from the root of the IoT Edge Dev Tool Solution to see changes to iotedgedev commands as you change code.
pip install -e .
VS Code Debugging works only with Python 3.6 VS Code Python Environments for now. Make sure that your VS Code Python Environment is pointing to Python 3.6
Set your CLI arguments in launch.json and hit F5
Run the following command to run tests.
tox