xbox xbl binding gets, creates, and deletes the binding of the game that
--store-id names. For how binding works and which games you can bind, see
Game Binding
in the XBOX developer documentation, which also recommends that a binding include at most one
Windows PC game.
Like every xbl command, these commands are Experimental: their options and output might change
or be removed. See Experimental commands.
create and delete say what they change and publish, and ask before they change anything.
Without a terminal, they refuse unless you pass --confirm (--yes, -y). See
Safety and destructive operations.
To check both games before create, get the game’s own XBOX title ID, the titleId that
binding get writes:
config status lists. Pass that titleId, then the
primary game’s XBOX title ID:
Options
Examples
Check whether a game is bound:1234ABCD, and wait until it’s bound:
Output
Each command writes the game’s binding. A bound game’s looks like this:
The table shows
STORE ID, TITLE ID, PRIMARY TITLE ID, STATUS, and BOUND GAMES, the
Store IDs of the games bound to a primary game.
Waiting for a bind or unbind
create waits until the bind finishes, when status isn’t Running. delete waits until the
game shows unbound, when primaryTitleId is null. XBOX services finish the unbind after that,
and until they do, they refuse to bind the game. That refusal changes nothing, so wait and run
create again. A failure in that last part of the unbind isn’t reported. Both commands then write
the binding. Ctrl+C stops waiting, but the bind or unbind continues. With --no-wait, the command
writes the binding as soon as the bind or unbind starts; check it later with binding get.
Errors
A refused request exits1 and writes a JSON error to stderr, as Errors
describes. Its detail says why. The service refuses to bind a game to itself, to bind a game
that other games are bound to, and to bind a game that’s already bound to a different primary
game; unbind it first. It also refuses games that binding doesn’t support, such as games without
XBOX services or games in different Partner Center accounts, and a bind or unbind while another
is running.