How do I change the port using the `cloudflared tunnel create` command instead of the configuration file?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I change the port using the `cloudflared tunnel create` command instead of the configuration file?
Asked by:
105 Viewed 105 Answers

Answer (105)

Best Answer
(337)
The `cloudflared tunnel create` command only creates the tunnel itself. You don't specify the port directly at creation. Instead, you'll configure the port forwarding within the tunnel's configuration, either through the configuration file (`config.yml`) or by using the `cloudflared tunnel run` command with the `--url` flag as needed.