Skip to content

XBOX CLI v0.6.1

Latest

Choose a tag to compare

@tbradshaw tbradshaw released this 02 Dec 07:44
0d82ed7

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 json or --output json-compact, or set XBOX_OUTPUT. See Output formats.
  • Commands that wait on a job, such as xbox game create, xbox sandbox create, and xbox test-account batch create, show their progress while they wait, instead of a single line until they finish.

Scripting and agents

  • New xbox --skill prints 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-input turns 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-id names a game by its XBOX title ID, and fills in from the title you save with xbox context set title-id or from XBOX_TITLE_ID. package, playtest, and store-listing commands find the game from it, so you don't need its Store ID, and xbl achievement-image get, list, and download don'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 create and xbox playtest update take --duration, such as 14d, 2w, or 36h, in place of --end.
  • After xbox playtest create, the command that publishes the new playtest is shown, ready to run.
  • xbox test-account batch create fills in --sandbox-id from the sandbox you save with xbox context set sandbox-id or from XBOX_SANDBOX_ID, and names the sandbox it used.
  • When xbox test-account job get or job wait can't find a job, it says the job ID is wrong or the job is no longer kept, and gives the xbox test-account batch get command that shows how the batch ended.
  • xbox test-account batch create Help 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 table shows 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 mps commands 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 upload names the asset after the uploaded file unless you pass --asset-name. See Multiplayer Servers.
  • xbox playfab commands that act on an entity take --entity type/id, such as --entity title_player_account/TITLEPLAYER123, or --entity title for the title itself, in place of --entity-type and --entity-id, which still work.
  • xbox playfab group member add, member remove, and member change-role take each member with a repeated --member-id. --member-ids still 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 json or --output json-compact, or set XBOX_OUTPUT. Exit codes are unchanged.
  • --xbox-title-id is renamed --title-id.
  • xbox playfab title-data and xbox playfab player-data take 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 --scopes are accepted only by the commands that use them, and only after the command name, such as xbox playfab title-data get --playfab-title-id ABC123. Elsewhere they're an error.
  • xbox game create --supported-device refuses 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-data and xbox playfab player-data.

See Known issues for the problems this release still has.