Skip to main content

Matchmaking

Matchmakers​

CommandDescription
gameflow matchmakers create --game-id GAME_ID --name NAMECreate a matchmaker for a game.
gameflow matchmakers list --game-id GAME_IDList the matchmakers of a game.
gameflow matchmakers get --matchmaker-id IDShow a matchmaker.
gameflow matchmakers update --matchmaker-id ID --status STATUSChange a matchmaker's name, description or status. Only the flags you pass change.
gameflow matchmakers flow get --matchmaker-id IDPrint the matchmaker's flow (nodes, mode configs and edges) as JSON.
gameflow matchmakers flow save --matchmaker-id ID --from-file flow.jsonReplace the flow with JSON from a file or --stdin. Accepts what flow get prints.
gameflow matchmakers publish --matchmaker-id IDMake the saved flow the live one.
gameflow matchmakers delete --matchmaker-id IDDelete 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.

CommandDescription
gameflow tickets create --player-id ID --game-id GAME_ID --game-mode MODEQueue a matchmaking ticket for a player. Add --latency us-east=40 per region.
gameflow tickets status --ticket-id IDShow the ticket's state: queued, pending or assigned. Add --wait-seconds 20 to wait.
gameflow tickets cancel --ticket-id ID --player-id IDCancel a ticket.
gameflow matches start --game-id GAME_ID --match-id IDRecord that a match started. Repeating the call is safe.
gameflow matches end --game-id GAME_ID --match-id ID --result RESULTRecord that a match ended. Repeating the call is safe.
  • Once a ticket is assigned, its connection field holds host:port.
  • A ticket that doesn't exist returns not_found.

To report a finished match to a skill rating model, see ratings report.