TUN-1035: New text for cloudflared tunnel --help

This commit is contained in:
Adam Chalmers 2018-09-20 15:54:02 -05:00 committed by Areg Harutyunyan
parent c10852a5e3
commit 674eb33edc
1 changed files with 19 additions and 8 deletions

View File

@ -167,15 +167,26 @@ func Commands() []*cli.Command {
Name: "tunnel", Name: "tunnel",
Action: tunnel, Action: tunnel,
Category: "Tunnel", Category: "Tunnel",
Usage: "Cloudflare reverse tunnelling proxy agent", Usage: "Make a locally-running web service accessible over the internet using Argo Tunnel.",
ArgsUsage: "origin-url", ArgsUsage: "[origin-url]",
Description: `A reverse tunnel proxy agent that connects to Cloudflare's infrastructure. Description: `Argo Tunnel asks you to specify a hostname on a Cloudflare-powered
Upon connecting, you are assigned a unique subdomain on cftunnel.com. domain you control and a local address. Traffic from that hostname is routed
You need to specify a hostname on a zone you control. (optionally via a Cloudflare Load Balancer) to this machine and appears on the
A DNS record will be created to CNAME your hostname to the unique subdomain on cftunnel.com. specified port where it can be served.
Requests made to Cloudflare's servers for your hostname will be proxied This feature requires your Cloudflare account be subscribed to the Argo Smart Routing feature.
through the tunnel to your local webserver.`,
To use, begin by calling login to download a certificate:
cloudflared tunnel login
With your certificate installed you can then launch your first tunnel,
replacing my.site.com with a subdomain of your site:
cloudflared tunnel --hostname my.site.com --url http://localhost:8080
If you have a web server running on port 8080 (in this example), it will be available on
the internet!`,
Subcommands: subcommands, Subcommands: subcommands,
Flags: tunnelFlags(false), Flags: tunnelFlags(false),
}) })