Skip to content

Commit d6c3e32

Browse files
Cyb3r-Jak3RebeccaTamachiro
authored andcommitted
Add token-file parameter for tunnels (#21697)
1 parent 4a5a9cb commit d6c3e32

File tree

1 file changed

+14
-0
lines changed
  • src/content/docs/cloudflare-one/connections/connect-networks/configure-tunnels/cloudflared-parameters

1 file changed

+14
-0
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/configure-tunnels/cloudflared-parameters/run-parameters.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,17 @@ For remotely-managed tunnels only.
169169
| `cloudflared tunnel run --token <TUNNEL_TOKEN>` | `TUNNEL_TOKEN` |
170170

171171
Associates the `cloudflared` instance with a specific tunnel. The tunnel's token is shown in the dashboard when you first [create the tunnel](/cloudflare-one/connections/connect-networks/get-started/create-remote-tunnel/). You can also retrieve the token using the [API](/api/resources/zero_trust/subresources/tunnels/subresources/token/methods/get/).
172+
173+
174+
## `token-file`
175+
176+
:::note
177+
178+
For remotely-managed tunnels only. Requires `2025.4.0` or later.
179+
:::
180+
181+
| Syntax | Environment Variable |
182+
| ----------------------------------------------- | -------------------- |
183+
| `cloudflared tunnel run --token-file <PATH>` | `TUNNEL_TOKEN_FILE` |
184+
185+
Associates the `cloudflared` instance with a specific tunnel using a file which contains the token.

0 commit comments

Comments
 (0)