Listen Player
Listen for player notifications
beam listen player [options]
About
The listen player command will monitor events sent to the logged in
player on the CLI. Player events include updates such as content
notifications, inventory updates, mail updates, and more.
IMPORTANT: The command only works if the realm is configured to use
Beamable Notifications, which is the default setting for new realms
as of July 2023. However, if the realm is not using Beamable Notifications,
the following error will be displayed.
Only realms with beam notifications are supported. This realm currently has pubnub.
Try setting the realm config to beam with this command,
""beam config realm set --key-values 'notification|publisher::beamable'""
To get started with the command, make sure you have the CLI configured,
and an available player.
- Run
beam me
to get access to the player'splayerId
. - Use the portal, and navigate to the player's inventory page.
- Run
beam listen player
, and leave the program running. This starts the listening process. - On the portal, change the player's currency value. Alternatively, send the player some mail.
- On the console, notice the event is received.
Options
Name | Type | Description |
---|---|---|
--context | String | A regex to filter for notification channels |
--dryrun | Boolean | Should any networking happen? |
--cid | String | Cid to use; will default to whatever is in the file system |
--pid | String | Pid to use; will default to whatever is in the file system |
--quiet | Boolean | When true, skip input waiting and use defaults |
--host | String | The host endpoint for beamable |
--refresh-token | String | Refresh token to use for the requests |
--log | String | Extra logs gets printed out |
--dir | String | Directory to use for configuration |
--raw | Boolean | Output raw JSON to standard out. This happens by default when the command is being piped |
--pretty | Boolean | Output syntax highlighted box text. This happens by default when the command is not piped |
--dotnet-path | String | a custom location for dotnet |
--version | Boolean | Show version information |
--help | Boolean | Show help and usage information |
Parent Command
Updated 4 months ago