Repository navigation
A new look in the terminal
- Every command shows its result in a designed terminal format by default: rows of a status, a label, a value, and a detail, with each step of a longer command, such as
xbox playtest publish, settling in place as it finishes. Prompts, progress, warnings, and errors on stderr use the same style. JSON is unchanged: pass--output jsonor--output json-compact, or setXBOX_OUTPUT. See Output formats. - Commands that wait on a job, such as
xbox game create,xbox sandbox create, andxbox test-account batch create, show their progress while they wait, instead of a single line until they finish.
Scripting and agents
- New
xbox --skillprints an agent skill for the version of the CLI you're running, so an AI agent learns the CLI from the CLI itself. See Using the XBOX CLI from agents. - New global
--no-inputturns off every question the CLI asks: a command that would ask fails at once and names the option that answers it, such as--confirm. It never confirms anything itself. - Ctrl+C behaves the same in every command: while a command reads, waits, or asks, it stops the command with exit code
130. When a change might already have been sent, the command says so and how to check it.
Setting up and testing your game
--title-idnames a game by its XBOX title ID, and fills in from the title you save withxbox context set title-idor fromXBOX_TITLE_ID.package,playtest, andstore-listingcommands find the game from it, so you don't need its Store ID, andxbl achievement-image get,list, anddownloaddon't need its service configuration identifier (SCID). See Context.- Commands that take one playtest accept its name as well as its ID, such as
xbox playtest publish "First Look". When more than one playtest has the name, the command lists them and changes nothing. See Playtest. xbox playtest createandxbox playtest updatetake--duration, such as14d,2w, or36h, in place of--end.- After
xbox playtest create, the command that publishes the new playtest is shown, ready to run. xbox test-account batch createfills in--sandbox-idfrom the sandbox you save withxbox context set sandbox-idor fromXBOX_SANDBOX_ID, and names the sandbox it used.- When
xbox test-account job getorjob waitcan't find a job, it says the job ID is wrong or the job is no longer kept, and gives thexbox test-account batch getcommand that shows how the batch ended. xbox test-account batch createHelp and docs give the rule that the password and the security answer can't contain each other.
Configuring and publishing XBOX services
- New
xbox xbl config restore --version <N>saves an earlier version's documents to the draft, so you can publish it again. It prints the command that undoes the restore. See XBOX services configuration. xbox xbl config history --output tableshows the author's ID when the author has no name, such as a save made by XBOX services.
Running your game live with PlayFab
xbox playfab mpscommands take named options for the fields you use most, such as--build,--region,--session-id,--asset-name, and--request-id, so common requests need no JSON body.mps asset uploadnames the asset after the uploaded file unless you pass--asset-name. See Multiplayer Servers.xbox playfabcommands that act on an entity take--entity type/id, such as--entity title_player_account/TITLEPLAYER123, or--entity titlefor the title itself, in place of--entity-typeand--entity-id, which still work.xbox playfab group member add,member remove, andmember change-roletake each member with a repeated--member-id.--member-idsstill works in this release, with a warning, and is removed in the next one.
Breaking changes
- Without
--output, commands write the designed terminal format to stdout, not JSON. Scripts and agents that read stdout must pass--output jsonor--output json-compact, or setXBOX_OUTPUT. Exit codes are unchanged. --xbox-title-idis renamed--title-id.xbox playfab title-dataandxbox playfab player-datatake each key with a repeated--key, in place of the comma-separated--keys, which is removed.--playfab-title-id,--profile,--client-id,--tenant-id, and--scopesare accepted only by the commands that use them, and only after the command name, such asxbox playfab title-data get --playfab-title-id ABC123. Elsewhere they're an error.xbox game create --supported-devicerefuses a comma-separated list or a number. Repeat the option for each device.
Fixed
- The CLI starts on Linux systems without the International Components for Unicode (ICU) library, such as slim container images. On every platform, Help and errors are always in English.
- Commands that make several requests at once no longer fail now and then because they can't find your signed-in account.
- A key that contains a comma can be read and deleted with
xbox playfab title-dataandxbox playfab player-data.
See Known issues for the problems this release still has.