Documentation

Unity Gaming Services CLI


GitHub Repository

Unity Gaming Services CLI


Request-token

Request a connection token for a player in a lobby.
Read time 1 minuteLast updated 21 hours ago

Request a token Authentication Required:
Yes
ugs lobby request-token <lobby-id> <player-id> <type> [options]

Arguments

<lobby-id>
The ID of the lobby.
<player-id>
The ID of the player to impersonate.
<type>
The token type to request. Valid values are
VivoxJoin
or
WireJoin
.

Options

Option

Alias

Description

service-id--service-id(REQUIRED) The service ID.
project-id-p, --project-idThe Unity cloud project ID.
environment-name-e, --environment-nameThe services environment name.
help-?, -h, --helpDisplay help and usage information.
quiet-q, --quietReduce logging to a minimum.
json-j, --jsonUse JSON as the output format.