Change Home Assistant URL via CLI

It’s a very basic question I think, but I cannot seem to get the right answer via existing topics, Google or ChatGPT, so my question is: How do I adjust the Home Assistant URL (Default = http://homeassistant.local:8123) via the CLI?

What are you trying to actually do.

Url is a function of DNS and you may need to specify a name for SSL. You don’t do it in the cli

You will have to change the hostname. You can do that from the UI:
Settings → Network → Hostname

Or use the supervisor options --hostname yournewhostnamehere

Thanks that seems to be the thing I’m searching for. When I add a name after --hostname, I get the response:

Error: extra keys not allowed @ data ['hostname' ]. Got 'habackup'

Can I not just put a name here?

No clue as to why it wont accept. Tried it on my test system and other options will accept, just not the hostname. Perhaps just do it from the UI

Ok, so there is no method to set the hostname/URL via the CLI?

I was able to set it using:

ha host options --hostname newhostname.lan