()
| 38 | } |
| 39 | |
| 40 | func 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 | |
| 51 | func managementTokenCommand(c *cli.Context) error { |
| 52 | log := cliutil.CreateStderrLogger(c) |
no test coverage detected