Sudo cloudflared service install --legacy

1 i am following the docs cloudflared (DoH) - Pi-hole documentation
it say

sudo cloudflared service install --legacy

2 i get the error


sudo cloudflared service install --legacy
Incorrect Usage: flag provided but not defined: -legacy

NAME:
   cloudflared service install - Install cloudflared as a system service

USAGE:
   cloudflared service install [command options] [arguments...]

OPTIONS:
   --help, -h  show help (default: false)

3 version

cloudflared -v
cloudflared version 2022.9.0 (built 2022-09-07-0833 UTC)

The only thing I can think of is that they removed the --legacy parameter. This is what I find on Cloudfare's site:

Also this was discussed in another thread:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.