cloudflared tunnel run --token $TUNNEL_TOKEN

Category: Local Network & Public Hosting

cloudflared tunnel run --token $TUNNEL_TOKEN

Run a tunnel using a token instead of credentials

A tunnel token bundles all credentials, so this starts the tunnel with nothing but the $TUNNEL_TOKEN environment variable, which is how Kubernetes and remote hosts run tunnels without copying credential files. The token grants the ability to serve the tunnel, so keep it out of public repos. cloudflared stays in the foreground until stopped.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.