Skip to content

Commit d9b4b56

Browse files
authored
Print project URL in the token command. (#613)
1 parent f44e4ab commit d9b4b56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/lk/token.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ import (
2525
"github.com/charmbracelet/huh"
2626
"github.com/urfave/cli/v3"
2727

28-
"github.com/livekit/livekit-cli/v2/pkg/util"
2928
"github.com/livekit/protocol/auth"
3029
"github.com/livekit/protocol/livekit"
30+
31+
"github.com/livekit/livekit-cli/v2/pkg/util"
3132
)
3233

3334
const (
@@ -348,6 +349,9 @@ func createToken(ctx context.Context, c *cli.Command) error {
348349
fmt.Println("Token grants:")
349350
util.PrintJSON(grant)
350351
fmt.Println()
352+
if project.URL != "" {
353+
fmt.Println("Project URL:", project.URL)
354+
}
351355
fmt.Println("Access token:", token)
352356

353357
if c.IsSet("open") {

0 commit comments

Comments
 (0)