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.2
Note
To install a specific version of the GDK CLI, replace
versionTag
with 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 --help
If the
gdk
command isn't found, add its folder to PATH.-
On Linux devices, add
/home/
to PATH, and replaceMyUser
/.local/binMyUser
with the name of your user. -
On Windows devices, add
to PATH, and replacePythonPath
\\ScriptsPythonPath
with 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.