HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/greengrassv2/list-components.rst
**To list components**

The following ``list-components`` example lists each component and its latest version defined in your AWS account in the current Region. ::

    aws greengrassv2 list-components

Output::

    {
        "components": [
            {
                "arn": "arn:aws:greengrass:us-west-2:123456789012:components:com.example.HelloWorld",
                "componentName": "com.example.HelloWorld",
                "latestVersion": {
                    "arn": "arn:aws:greengrass:us-west-2:123456789012:components:com.example.HelloWorld:versions:1.0.1",
                    "componentVersion": "1.0.1",
                    "creationTimestamp": "2021-01-08T16:51:07.352000-08:00",
                    "description": "My first AWS IoT Greengrass component.",
                    "publisher": "Amazon",
                    "platforms": [
                        {
                            "attributes": {
                                "os": "linux"
                            }
                        }
                    ]
                }
            }
        ]
    }

For more information, see `Manage components <https://docs.aws.amazon.com/greengrass/v2/developerguide/manage-components.html>`__ in the *AWS IoT Greengrass V2 Developer Guide*.