Greengrass CLI
The Greengrass CLI component (aws.greengrass.Cli
) provides a local command-line
interface that you can use on core devices to develop and debug components locally. The Greengrass CLI
lets you create local deployments and restart components on the core device, for example.
You can install this component when you install the Amazon IoT Greengrass Core software. For more information, see Tutorial: Getting started with Amazon IoT Greengrass V2.
Important
We recommend that you use this component in only development environments, not production environments. This component provides access to information and operations that you typically won't need in a production environment. Follow the principle of least privilege by deploying this component to only core devices where you need it.
After you install this component, run the following command to view its help documentation.
When this component installs, it adds a symbolic link to greengrass-cli
in the
folder. You can run the Greengrass CLI from this path or add it
to your
/bin/greengrass/v2
PATH
environment variable to run greengrass-cli
without its
absolute path.
The following command restarts a component named com.example.HelloWorld
, for
example.
For more information, see Greengrass Command Line Interface.
Versions
This component has the following versions:
-
2.14.x
-
2.13.x
-
2.12.x
-
2.11.x
-
2.10.x
-
2.9.x
-
2.8.x
-
2.7.x
-
2.6.x
-
2.5.x
-
2.4.x
-
2.3.x
-
2.2.x
-
2.1.x
-
2.0.x
Type
This component is a plugin component
(aws.greengrass.plugin
). The Greengrass
nucleus runs this component in the same Java Virtual Machine (JVM) as the nucleus. The
nucleus restarts when you change this component's version on the core device.
This component uses the same log file as the Greengrass nucleus. For more information, see Monitor Amazon IoT Greengrass logs.
For more information, see Component types.
Operating system
This component can be installed on core devices that run the following operating systems:
Linux
Windows
Requirements
This component has the following requirements:
-
You must be authorized to use the Greengrass CLI to interact with the Amazon IoT Greengrass Core software. Do one of the following to use the Greengrass CLI:
-
Use the system user that runs the Amazon IoT Greengrass Core software.
-
Use a user with root or adminstrative permissions. On Linux core devices, you can use
sudo
to gain root permissions. -
Use a system user that's in a group that you specify in the
AuthorizedPosixGroups
orAuthorizedWindowsGroups
configuration parameters when you deploy the component. For more information, see Greengrass CLI component configuration.
-
-
The Greengrass CLI component is supported to run in a VPC.
Dependencies
When you deploy a component, Amazon IoT Greengrass also deploys compatible versions of its dependencies. This means that you must meet the requirements for the component and all of its dependencies to successfully deploy the component. This section lists the dependencies for the released versions of this component and the semantic version constraints that define the component versions for each dependency. You can also view the dependencies for each version of the component in the Amazon IoT Greengrass console
For more information about component dependencies, see the component recipe reference.
Configuration
This component provides the following configuration parameters that you can customize when you deploy the component.
Local log file
This component uses the same log file as the Greengrass nucleus component.
To view this component's logs
-
Run the following command on the core device to view this component's log file in real time. Replace
or/greengrass/v2
C:\greengrass\v2
with the path to the Amazon IoT Greengrass root folder.
Changelog
The following table describes the changes in each version of the component.
Version |
Changes |
---|---|
2.14.0 |
|
2.13.0 |
Version updated for Greengrass nucleus version 2.13.0 release. |
2.12.6 |
Version updated for Greengrass nucleus version 2.12.6 release. |
2.12.5 |
Version updated for Greengrass nucleus version 2.12.5 release. |
2.12.4 |
Version updated for Greengrass nucleus version 2.12.4 release. |
2.12.3 |
WarningThis version is no longer available. The improvements in this version are available in later versions of this component. Version updated for Greengrass nucleus version 2.12.3 release. |
2.12.2 |
Version updated for Greengrass nucleus version 2.12.2 release. |
2.12.1 |
Version updated for Greengrass nucleus version 2.12.1 release. |
2.12.0 |
Version updated for Greengrass nucleus version 2.12.0 release. |
2.11.3 |
Version updated for Greengrass nucleus version 2.11.3 release. |
2.11.2 |
Version updated for Greengrass nucleus version 2.11.2 release. |
2.11.1 |
Version updated for Greengrass nucleus version 2.11.1 release. |
2.11.0 |
|
2.10.3 |
Version updated for Greengrass nucleus version 2.10.3 release. |
2.10.2 |
Version updated for Greengrass nucleus version 2.10.2 release. |
2.10.1 |
Version updated for Greengrass nucleus version 2.10.1 release. |
2.10.0 |
Version updated for Greengrass nucleus version 2.10.0 release. |
2.9.6 |
Version updated for Greengrass nucleus version 2.9.6 release. |
2.9.5 |
Version updated for Greengrass nucleus version 2.9.5 release. |
2.9.4 |
Version updated for Greengrass nucleus version 2.9.4 release. |
2.9.3 |
Version updated for Greengrass nucleus version 2.9.3 release. |
2.9.2 |
Version updated for Greengrass nucleus version 2.9.2 release. |
2.9.1 |
Version updated for Greengrass nucleus version 2.9.1 release. |
2.9.0 |
Version updated for Greengrass nucleus version 2.9.0 release. |
2.8.1 |
Version updated for Greengrass nucleus version 2.8.1 release. |
2.8.0 |
Version updated for Greengrass nucleus version 2.8.0 release. |
2.7.0 |
Version updated for Greengrass nucleus version 2.7.0 release. |
2.6.0 |
|
2.5.6 |
Version updated for Greengrass nucleus version 2.5.6 release. |
2.5.5 |
Version updated for Greengrass nucleus version 2.5.5 release. |
2.5.4 |
Version updated for Greengrass nucleus version 2.5.4 release. |
2.5.3 |
Version updated for Greengrass nucleus version 2.5.3 release. |
2.5.2 |
Version updated for Greengrass nucleus version 2.5.2 release. |
2.5.1 |
Version updated for Greengrass nucleus version 2.5.1 release. |
2.5.0 |
|
2.4.0 |
|
2.3.0 |
Version updated for Greengrass nucleus version 2.3.0 release. |
2.2.0 |
Version updated for Greengrass nucleus version 2.2.0 release. |
2.1.0 |
Version updated for Greengrass nucleus version 2.1.0 release. |
2.0.5 |
Version updated for Greengrass nucleus version 2.0.5 release. |
2.0.4 |
Version updated for Greengrass nucleus version 2.0.4 release. |
2.0.3 |
Initial version. |