Install or update the AWS IoT Greengrass Development Kit Command-Line Interface
The AWS IoT Greengrass Development Kit Command-Line Interface (GDK CLI) is built on Python, so you can use pip to install
it on your development computer.
Tip
You can also install the GDK CLI in a Python virtual environments such as venv
To install or update the GDK CLI
-
Run the following command to install the latest version of the GDK CLI from its GitHub repository
. python3 -m pip install -U git+https://github.com/aws-greengrass/aws-greengrass-gdk-cli.git@v1.6.2Note
To install a specific version of the GDK CLI, replace
versionTagwith the version tag to install. You can view version tags for the GDK CLI in its GitHub repository. python3 -m pip install -U git+https://github.com/aws-greengrass/aws-greengrass-gdk-cli.git@versionTag -
Run the following command to verify that the GDK CLI installed successfully.
gdk --helpIf the
gdkcommand isn't found, add its folder to PATH.-
On Linux devices, add
/home/to PATH, and replaceMyUser/.local/binMyUserwith the name of your user. -
On Windows devices, add
to PATH, and replacePythonPath\\ScriptsPythonPathwith the path to the Python folder on your device.
-
You can now use the GDK CLI to create, build, and publish Greengrass components. For more information about how to use the GDK CLI, see AWS IoT Greengrass Development Kit Command-Line Interface commands.