Skip to content

[Tunnel] Add Cloudflare CLI (cf) commands as the primary option - #36014

Merged
nikitacano merged 2 commits into
cloudflare:productionfrom
JulioJPinto:docs/cf-cli-tunnels
Dec 3, 2026
Merged

nikitacano merged 2 commits into
cloudflare:productionfrom
JulioJPinto:docs/cf-cli-tunnels

Conversation

@JulioJPinto

@JulioJPinto JulioJPinto commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds Cloudflare CLI (cf) commands to the Tunnel docs. Where a Dashboard option exists, the Dashboard tab stays first and Cloudflare CLI is second. Everywhere else, Cloudflare CLI is the first (default) tab, ahead of cloudflared and the API.

Every cf tunnels operation (as of cf 1.0.0-rc.7) is now documented on at least one page, except cf tunnels hostnames, which is left out because the feature isn't documented yet.

Pages

  • Get started: cf tunnels create, token get, config update/get, cf dns records create, cf tunnels run --token
  • Quick Tunnels: cf tunnels quick-start, including --allowed-mail
  • Create a locally-managed tunnel: login, create --config-source local --tunnel-secret (plus credentials file), list, run, get, connections list
  • Useful commands: a full cf tunnels reference in a Cloudflare CLI tab. The existing cloudflared partial moves to a second tab.
  • Observability: cf tunnels list --status, tail (with filters), diag, ready
  • Tunnel tokens: token get, connections cleanup
  • Configuration (replicas): token get + run --token, and connections list
  • Troubleshooting: cf tunnels run --log-level debug

All tab groups use the standard dashPlusAPI sync key.

Mesh pages will follow in a separate PR.

Notes

  • cf runs cloudflared for you. It uses CLOUDFLARED_PATH first, then PATH, and offers to download cloudflared if it finds neither. The docs say this where it matters.
  • cf has no equivalent of cloudflared tunnel route dns, so the DNS step uses cf dns records create. It also has no --config flag for custom config paths, so that case still points to cloudflared.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should take this doc out of locally managed tunnels section.

@JulioJPinto
JulioJPinto marked this pull request as ready for review December 3, 2026 16:57
@JulioJPinto
JulioJPinto requested a review from a team as a code owner December 3, 2026 16:57
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed 85b4bd6 · 0 findings · incremental

Resolved (1) · Dismissed (0)
  • Resolved: Missing serial comma in three-item list · Read tunnel-useful-commands.mdx at PR head: line 26 now reads "such as Mesh nodes, IPsec tunnels, and GRE tunnels" — serial comma before the final 'and' is present, so the issue no longer exists.
Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@nikitacano
nikitacano enabled auto-merge December 3, 2026 17:20
@nikitacano
nikitacano added this pull request to the merge queue Dec 3, 2026
Merged via the queue into cloudflare:production with commit 069a785 Dec 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants