# Request-token

> Request a connection token for a player in a lobby.

Request a token

Authentication Required: `Yes`

```bash
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-id       | The Unity cloud project ID.         |
| environment-name | -e, --environment-name | The services environment name.      |
| help             | -?, -h, --help         | Display help and usage information. |
| quiet            | -q, --quiet            | Reduce logging to a minimum.        |
| json             | -j, --json             | Use JSON as the output format.      |
