My device is in a weird state where everything works fine (in terms of automation), but I can’t seem to access the web interface and any api call also fails. I can easily log into the system and I’m trying to debug the issue by looking at the logs, but some of them are so long that they scroll past what I can read. How can I scroll the console up/down? I’ve tried the usual shift-page-up/down but that didn’t work.
I’m running the latest stable Hass OS and Google failed me here as well.
That would be fine if I was running on the command line, but I can only access the device right now through the local HA and by logging into that. Meaning I can only issue HA commands which doesn’t support | more | less or anything like that as far as I can tell.
I did not figure out how to scroll. But I needed to to see which snapshots are available to restore one.
I used “snapshots --raw-json” which gives the snapshot names in one big line so you can see them.
I’m also interested in doing this, because the current ha > CLI is hard to glean with so much info whizzing past, a few examples being the output from the commands
@bhavers - thanks for the tip with the ‘login’ command. It would be nice if the help menu would mention ‘login’ as an option.
It drove me nuts as well. I could not find a way for pagination scrolling, and could not find how to get to the underlying shell.
Just to clarify the solution already stated in prior posts:
From the Home Assistant CLI prompt (ha >), enter the command login. This will start a “light” Linux command shell (ash). Now, you can enter any of the HA CLI commands (as well as any other commands supported by the shell, and pipe the output through the more command, which will paginate the output. Ex: ha addons | more
To return to the HA CLI, enter the exit command, which will terminate the shell.
I’ve added a request to have the Login command added to the CLI Help output.