You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "cloudflared tunnel token will fetch the credentials token for a given tunnel (by its name or UUID), which is then used to run the tunnel. This command fails if the tunnel does not exist or has been deleted. Use the flag `cloudflared tunnel token --cred-file /my/path/file.json TUNNEL` to output the token to the credentials JSON file. Note: this command only works for Tunnels created since cloudflared version 2022.3.0",
724
+
Flags: []cli.Flag{credentialsFileFlagCLIOnly},
725
+
CustomHelpTemplate: commandHelpTemplate(),
726
+
}
727
+
}
728
+
729
+
functokenCommand(c*cli.Context) error {
730
+
sc, err:=newSubcommandContext(c)
731
+
iferr!=nil {
732
+
returnerrors.Wrap(err, "error setting up logger")
733
+
}
734
+
735
+
warningChecker:=updater.StartWarningCheck(c)
736
+
deferwarningChecker.LogWarningIfAny(sc.log)
737
+
738
+
ifc.NArg() !=1 {
739
+
returncliutil.UsageError(`"cloudflared tunnel token" requires exactly 1 argument, the name or UUID of tunnel to fetch the credentials token for.`)
0 commit comments