Skip to content

ha addons info command from example does not work #217

Description

@mdegat01

Describe the bug

Trying to get the CLI to list me information on all addons and it is requiring I provide a slug for a specific addon. When you use ha addons -h it lists an example of ha addons info as a way to do this but when you actually try to use that command you get an error. See below:
Screen Shot 2020-03-26 at 11 49 23 AM

Debug info

  1. SSH Addon type:
  • Community
  • Core
  • Custom
  1. Version of the CLI:
    I'm running version 7.3.0 of the SSH & Web Terminal community addon, I'm not sure how to determine what CLI version that uses.

  2. Version of Home Assistant Core & the Home Assistant Supervisor
    HA Core is 107.6
    Supervisor is 209

  3. Output from executing the command with debug info.
    e.g. ha hardware info should be run as ha -d hardware info
    Screen Shot 2020-03-26 at 11 59 14 AM

Expected behavior
I expect the command ha addons info to return me the list of addons and information on them such as slug, installed version, latest version, etc.

Additional context
When you run the command ha addons by itself it seems to output the info I would expect to come from ha addons info. So this may just be a documentation bug showing a bad example. Although I noticed that the command ha addons only seems to work when ssh'ed into HA, if I try to use by passing it in like ssh <HA Username>@<HA IP> 'ha addons' I receive a response like this:

time="2020-03-26T12:06:01-04:00" level=error msg="Unexpected server response"
Unexpected server response

None of the other HA CLI commands seem to run into this issue where they can't be passed into SSH that I tried.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions