How to list and uninstall addons from CLI?

Hi there,

since yesterday, I am facing an issue with the vscode addon. At least, I assume the issues from that, because supervisor log indicates an unhealthy state of the addon, HA won’t start properly… The watchdog for vscode is enabled, so it starts over and over…

I thought about uninstalling the addon via CLI, but I am not able to identify the technical name I need to provide in addons uninstall [name], because when just running addons, the list is too long and I am not able to scroll upwards, as I am using the Synology VM Terminal connection.

My home assistant instances startup is taking hours, and even then it is not up and running properly, as the addons are not loaded successfully.

Hoping for a hint on that!

docker ps

CONTAINER ID   IMAGE                                                      COMMAND                  CREATED         STATUS                 PORTS                                                                                                                          NAMES
21e56529d30a   ghcr.io/home-assistant/amd64-hassio-supervisor:latest      "/init"                  5 hours ago     Up 5 hours                                                                                                                                            hassio_supervisor
72867de1bcf1   homeassistant/amd64-addon-mosquitto:6.4.1                  "/init"                  3 days ago      Up 3 days              0.0.0.0:1883-1884->1883-1884/tcp, :::1883-1884->1883-1884/tcp, 0.0.0.0:8883-8884->8883-8884/tcp, :::8883-8884->8883-8884/tcp   addon_core_mosquitto
0433cac09747   ghcr.io/home-assistant/qemux86-64-homeassistant:2024.5.5   "/init"                  3 days ago      Up 3 days                                                                                                                                             homeassistant
81d3cf3bedc0   ghcr.io/esphome/esphome-hassio:2024.5.4                    "/init"                  5 days ago      Up 5 days                                                                                                                                             addon_5c53de3b_esphome
02eae08cc3ad   ghcr.io/hassio-addons/ssh/amd64:18.0.0                     "/init"                  12 days ago     Up 12 days                                                                                                                                            addon_a0d7b954_ssh
1f55a19812d6   ghcr.io/brenner-tobias/cloudflared/amd64:5.1.10