Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"backups" command in terminal doesn't behave the way help says it should #137122

Open
robthebold opened this issue Feb 1, 2025 · 0 comments
Open

Comments

@robthebold
Copy link

The problem

Raspberry Pi 3B+, Home Assistant OS 14.2, core-2025.1.4

Using terminal on RaspPi or thru SSH the ha backups info command returns an error when called without an argument.

[core-ssh ~]$ ha backups info
Error: accepts 1 arg(s), received 0
Usage:
  ha backups info [slug] [flags]

Aliases:
  info, in, inf

Examples:

  ha backups info c1a07617

Flags:
  -h, --help   help for info

Global Flags:
      --api-token string   Home Assistant Supervisor API token
      --config string      Optional config file (default is $HOME/.homeassistant.yaml)
      --endpoint string    Endpoint for Home Assistant Supervisor (default is 'supervisor')
      --log-level string   Log level (defaults to Warn)
      --no-progress        Disable the progress spinner
      --raw-json           Output raw JSON from the API

FATA[0000] Error while executing rootCmd: accepts 1 arg(s), received 0 
[core-ssh ~]$

However, ha backups info --help indicates that the arguments are optional and that when called without arguments it should list available backups.

[core-ssh ~]$ ha backups info --help

When a Home Assistant backup is created, it will be available for restore.
This command gives you information about a specific backup.

Usage:
  ha backups info [slug] [flags]

Aliases:
  info, in, inf

Examples:

  ha backups info c1a07617

Flags:
  -h, --help   help for info

Global Flags:
      --api-token string   Home Assistant Supervisor API token
      --config string      Optional config file (default is $HOME/.homeassistant.yaml)
      --endpoint string    Endpoint for Home Assistant Supervisor (default is 'supervisor')
      --log-level string   Log level (defaults to Warn)
      --no-progress        Disable the progress spinner
      --raw-json           Output raw JSON from the API
[core-ssh ~]$

This was working as expected in the previous version I was using which I think was core-2025.1.3. I know because I had to use the CLI to list the available backups on a system with a failing SD card.

What version of Home Assistant Core has the issue?

core-2025.1.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

n/a

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant