MCPcopy
hub / github.com/cloudflare/cloudflared / buildTailManagementTokenSubcommand

Function buildTailManagementTokenSubcommand

cmd/cloudflared/tail/cmd.go:40–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func buildTailManagementTokenSubcommand() *cli.Command {
41 return &cli.Command{
42 Name: "token",
43 Action: cliutil.ConfiguredAction(managementTokenCommand),
44 Usage: "Get management access jwt",
45 UsageText: "cloudflared tail token TUNNEL_ID",
46 Description: `Get management access jwt for a tunnel`,
47 Hidden: true,
48 }
49}
50
51func managementTokenCommand(c *cli.Context) error {
52 log := cliutil.CreateStderrLogger(c)

Callers 1

CommandFunction · 0.85

Calls 1

ConfiguredActionFunction · 0.92

Tested by

no test coverage detected