Note
These steps do not apply to nucleus lite.
The Greengrass CLI can take up to a minute to deploy. Run the following command to check the
status of the deployment. Replace MyGreengrassCore
with the name
of your core device.
aws greengrassv2 list-effective-deployments --core-device-thing-name
MyGreengrassCore
The coreDeviceExecutionStatus
indicates the status of the deployment to the
core device. When the status is SUCCEEDED
, run the following command to verify
that the Greengrass CLI is installed and runs. Replace
with the path to the root
folder./greengrass/v2
/greengrass/v2
/bin/greengrass-cli help
The command outputs help information for the Greengrass CLI. If the
greengrass-cli
isn't found, the deployment might have failed to install the
Greengrass CLI. For more information, see Troubleshooting AWS IoT Greengrass V2.
You can also run the following command to manually deploy the AWS IoT Greengrass CLI to your device.
-
Replace
region
with the AWS Region that you use. Make sure that you use the same AWS Region that you used to configure the AWS CLI on your device. -
Replace
account-id
with your AWS account ID. -
Replace
MyGreengrassCore
with the name of your core device.
aws greengrassv2 create-deployment \
--target-arn "arn:aws:iot:region
:account-id
:thing/MyGreengrassCore
" \
--components '{
"aws.greengrass.Cli": {
"componentVersion": "2.14.0"
}
}'
Tip
You can add
(Linux) or
/bin/greengrass/v2
(Windows) to your
\binC:\greengrass\v2
PATH
environment variable to run greengrass-cli
without its
absolute path.