Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 1.56 KB

alt-install-methods.md

File metadata and controls

34 lines (18 loc) · 1.56 KB

Alternative Installation Methods

From Extension Index method

Install the extension from the official Microsoft Azure CLI Extension Index

az extension add --name azure-iot

Tips

  • You can use az extension list-available to see all available extensions on the index
  • It is possible to update an extension in place using az extension update --name <extension name>

From whl package (remote or local) method

This installation method is recommended for pinning to a specific version of a release.

Navigate to the project's releases in GitHub to see the list of releases. Run the extension add command using the --source parameter.

The argument for the source parameter is either the URL path of the released extension package (ends with .whl) or the local path to the downloaded release package.

az extension add --source <local file path to release.whl OR url for release.whl>

For example, to install version 0.3.2

az extension add --source 'https://github.com/Azure/azure-iot-cli-extension/releases/download/v0.3.2/azure_cli_iot_ext-0.3.2-py2.py3-none-any.whl'

From local source method

You can create a wheel package locally from source to be used in Azure CLI.

To build the wheel locally, ensure you have the Python wheel package installed i.e. pip install wheel. Then run python setup.py bdist_wheel where the current directory is the extension root. The wheel (with .whl suffix) will be generated and available in the dist folder.

Then, follow the local package installation method.