Register with IPv6


I’m trying to do something like this:

cmk-agent-ctl register -H -i firma -s [1a02:88b0:505::5]:8000 -U register

(the IPv6 address is made-up)

I get this error:

error: Invalid value for '--server <server>': Failed to split into server and port at ':'

How is the correct syntax for IPv6?

EDIT: an obvious solution can be to include the ipv6 in the hosts file and use the server name.
However, I’d like to know if it can be done without that.

Thanks for reading,