What is the next step after installing cloudflared to set up a basic Cloudflare Tunnel?

Question

Grade: Education Subject: Support
What is the next step after installing cloudflared to set up a basic Cloudflare Tunnel?
Asked by:
87 Viewed 87 Answers

Answer (87)

Best Answer
(662)
After successfully installing `cloudflared`, the next crucial step is to authenticate it with your Cloudflare account to create and manage tunnels. You start by running `cloudflared tunnel login` in your terminal. This command will open a browser window, prompting you to log in to your Cloudflare account and select a domain. Upon successful authentication, a `cert.pem` file will be downloaded to your `~/.cloudflared/` directory, which authenticates your `cloudflared` instance. Following this, you can create a new tunnel using `cloudflared tunnel create ` and then configure its routing rules using a YAML configuration file before starting it.