If I’m running cloudflared tunnel run, the tunnel is setup correctly and without problems.
When I run the tunnel however by cloudflared service install, I get the following error:
Use `cloudflared tunnel run` to start tunnel xxxxxxxx-xxxxx-xxxxx-xxxxx-xxxxxxxxxxx
It’s also very strange as I’ve found that you can also run the tunnel in --legacy mode. This is however the error I’m getting when I’m trying to run it in legacy mode:
$ sudo cloudflared service install --legacy
Incorrect Usage: flag provided but not defined: -legacy
NAME:
cloudflared service install - Install Argo Tunnel as an user launch agent
USAGE:
cloudflared service install [command options] [arguments...]
OPTIONS:
--help, -h show help (default: false)
In MacOS, the service installation will create a plist file somewhere in /Users/<USER>/Library/LaunchAgents/com.cloudflare.cloudflared.plist.
If you edit that file, you can properly configure the command used to launch cloudflared. E.g.: