xbox xbl global-storage shows how much of its quota a
sandbox uses, and lists, downloads, uploads, and deletes its files, one at a time. Reading the
files needs Partner Center permission to read the game’s XBOX services configuration, and
uploading or deleting them needs permission to change it.
A game reads these files only when its sandbox’s published titlestorage.xml has
<StorageType ownerOnly="false">global</StorageType>, which Partner Center saves when you select
Active for Global on the Title Storage page. To turn it on with the CLI, add that
element to the sandbox’s titlestorage.xml with
xbl config save, then publish the sandbox with
xbl config publish.
Like every xbl command, these commands are Experimental: their options and output might change
or be removed. See Experimental commands.
RETAIL is read-only: upload and delete fail there. To change RETAIL’s files, change a
development sandbox’s, then publish that sandbox to RETAIL with
xbl config publish,
which makes RETAIL’s files a copy of its files.
Options
Without
--scid or --title-id, --sandbox-id, or --seller-id, a command uses the value set
as Context describes.
A path is folders of letters, digits, and _, each followed by /, then a file name of letters,
digits, _, -, and .. A path holds one file, whatever its type, so download and delete
need the type list shows. XBOX services check a json or config file’s content when it’s
uploaded.
Examples
See how much of its quota XDKS.1 uses, and list its files:today.json as the news feed the game reads:
today.json in the current directory, or write it to stdout:
Output
get writes the sandbox’s usage:
usedBytes is the space the sandbox’s files use, and quotaBytes its quota: once the files use
that much, uploads fail. Its table shows USED BYTES and QUOTA BYTES.
list writes an array of files, or [] when there are none:
size is in bytes, and clientFileTime is when the file was uploaded, when it’s known. The
table shows PATH, TYPE, SIZE, and UPLOADED.
upload, download, and delete are file operations, like cp and rm. They write nothing to
stdout, except the file with download --dest -, and report what they did on stderr:
These messages might change between releases. These three commands don’t accept
--output table. A download that fails leaves a file already at the destination as it was.
Exit codes
Errors
A refused request exits1 and writes a JSON error to stderr, as Errors
describes. These are the ones you’re most likely to see:
