HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
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*.