Skip to content

XBOX CLI v0.5.1

Latest

Choose a tag to compare

@tbradshaw tbradshaw released this 25 Nov 00:02
418c3e5

Setting up your game

  • New Experimental xbox store-listing get reads a game's Store listing text in Partner Center in one language: its product name, description, and product features. Text that isn't set is named on stderr, so an incomplete listing stands out. See Store listing.
  • xbox sandbox get and xbox sandbox create accept a sandbox number, such as 2, in place of a full sandbox ID, and xbox pc sandbox set does too. See Sandbox.
  • xbox sandbox list --owned leaves out global sandboxes such as RETAIL, and --type shared or --type isolated lists only that kind.

Testing your game

  • xbox audience update shows the rename and the members it adds and removes before it asks to update. --dry-run writes those changes as JSON and sends nothing.
  • xbox audience get --members-only writes only the members, one per line, in the format audience update --members-file reads, so you can save, edit, and send back the list. audience get --output table shows the members.
  • Before an audience write, a members file's lines that need fixing are named.
  • xbox test-account get finds an account by its email or its XUID, and its table output shows the XUID.
  • xbox test-account batch list --expired honors --limit, shows its progress, and works with --include-sandboxes.
  • xbox package list --output table shows each package's validation errors.

Configuring and publishing XBOX services

  • New xbox xbl config history lists a sandbox's saves, publishes, and copies, newest first, with who made each and what it changed in each feature.
  • New xbox xbl config diff compares configuration versions, the draft, and your local files, document by document, such as what publishing would change, or how your edited files differ from the draft.
  • xbox xbl config status shows each document's draft and published state by feature, with what each save changed and who saved it. config list shows which configuration sets have changes that aren't published.
  • xbl config commands take --scope sandbox, --scope title, or --scope account to choose a sandbox's, the title-wide, or the seller account's configuration.
  • xbox xbl config publish --scope account publishes the seller account's configuration, such as its relying parties and business partners.
  • New xbox xbl binding commands get, create, and delete the binding that makes a game use another game's XBOX services configuration. See Binding.
  • New xbox xbl global-storage commands get usage, and list, download, upload, and delete the global title storage files every player of a game reads in a sandbox. See Global storage.
  • New xbox xbl web-service commands list, get, create, update, and delete the web services your own services use to call XBOX services, and web-service certificate create creates their certificates, keeping the private key on your computer. See Web service.
  • New xbox xbl relying-party and xbox xbl business-partner commands list, get, create, and save a seller account's relying parties and business partners. See Relying party and Business partner.
  • XBOX services settings is a new page that says which configuration document holds each title setting, access policy, privilege, and single sign-on endpoint, and how each goes live.

Scripting and automation

  • New xbox completion prints a script that completes commands, options, and values when you press Tab in bash, zsh, fish, or PowerShell. See Completion.
  • Every command's Help has at least one example.
  • Doc examples work as written in PowerShell and in POSIX shells such as bash and zsh.

Errors and safety

  • A network failure says why it failed, such as the connection closing, instead of only that it failed. When a Partner Center or XBOX services request times out or loses its connection, the error includes the request's correlation ID, for support.
  • --password-file - and --security-answer-file - refuse to read a secret typed at the terminal, where it would show on screen. Pipe the secret in, pass a file, or leave out the option to be asked for it.
  • On Linux, xbox auth logout also empties the token cache file the CLI uses when no keyring is available, and makes it readable only by you.
  • --sandbox-id and --seller-id refuse control characters.
  • playfab economy inventory commands and playfab group application accept require --entity-id and --entity-type, and fail before sending a request without them. Without them, the service always refused the request.

Installing and updating

  • On Windows, the WinGet package is XBOX.cli: install with winget install XBOX.cli, and update with winget upgrade XBOX.cli. WinGet might get a release a few hours after GitHub. See Installation.

Breaking changes

  • A usage error, such as an unknown option or a missing value, writes the error to stderr only, and nothing to stdout. Before, stdout also got the command's Help.
  • xbox xbl config publish waits for the publish to finish, and shows its progress on stderr. Pass --no-wait to return once the publish is accepted.
  • xbl config commands take --scope account in place of --type account.
  • xbox playfab api-policy get and set no longer accept --policy-name. PlayFab has only one API policy, which they already used.
  • The PlayFab:RequestHeaders setting is removed.

Fixed

  • Commands for XBOX services configuration, test accounts, packages, playtests, and audiences work when you sign in with a personal Microsoft account.
  • Leaving out an option's value, or giving an option two values, is reported as a usage error, instead of crashing.
  • xbox test-account batch get on a deleted batch says the batch wasn't found, instead of suggesting test accounts are unavailable.

See Known issues for the problems this release still has.