Matchmaking
Matchmakers
| Command | Description |
|---|---|
gameflow matchmakers create --game-id GAME_ID --name NAME | Create a matchmaker for a game. |
gameflow matchmakers list --game-id GAME_ID | List the matchmakers of a game. |
gameflow matchmakers get --matchmaker-id ID | Show a matchmaker. |
gameflow matchmakers update --matchmaker-id ID --status STATUS | Change a matchmaker's name, description or status. Only the flags you pass change. |
gameflow matchmakers flow get --matchmaker-id ID | Print the matchmaker's flow (nodes, mode configs and edges) as JSON. |
gameflow matchmakers flow save --matchmaker-id ID --from-file flow.json | Replace the flow with JSON from a file or --stdin. Accepts what flow get prints. |
gameflow matchmakers publish --matchmaker-id ID | Make the saved flow the live one. |
gameflow matchmakers delete --matchmaker-id ID | Delete a matchmaker. |
matchmakers flow save replaces the whole flow, so run flow get > flow.json, edit the file, and save it back.
Smoke-test tickets and matches
These commands let you check a setup end to end without writing a backend. They exist for testing, not as a replacement for the API calls your game makes.
| Command | Description |
|---|---|
gameflow tickets create --player-id ID --game-id GAME_ID --game-mode MODE | Queue a matchmaking ticket for a player. Add --latency us-east=40 per region. |
gameflow tickets status --ticket-id ID | Show the ticket's state: queued, pending or assigned. Add --wait-seconds 20 to wait. |
gameflow tickets cancel --ticket-id ID --player-id ID | Cancel a ticket. |
gameflow matches start --game-id GAME_ID --match-id ID | Record that a match started. Repeating the call is safe. |
gameflow matches end --game-id GAME_ID --match-id ID --result RESULT | Record that a match ended. Repeating the call is safe. |
- Once a ticket is
assigned, itsconnectionfield holdshost:port. - A ticket that doesn't exist returns
not_found.
To report a finished match to a skill rating model, see ratings report.