Verify the Greengrass CLI installation on the device
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-nameMyGreengrassCore
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 /greengrass/v2
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 Amazon IoT Greengrass V2.
You can also run the following command to manually deploy the Amazon IoT Greengrass CLI to your device.
- 
          Replace regionwith the Amazon Web Services Region that you use. Make sure that you use the same Amazon Web Services Region that you used to configure the Amazon CLI on your device.
- 
          Replace account-idwith your Amazon Web Services account ID.
- 
          Replace MyGreengrassCorewith the name of your core device.
Tip
You can add /greengrass/v2C:\greengrass\v2PATH environment variable to run greengrass-cli without its
          absolute path.