Build, release, and operate XBOX games from your terminal, scripts, and AI agents.
Install with WinGet on Windows:
winget install XBOX.cli
Run the install script on macOS or Linux:
curl -fsSL https://raw.githubusercontent.com/xbox/cli/main/install.sh | sh
No .NET installation is required. To install from an archive instead, see Installation.
Sign in, which opens your browser, then list your Partner Center sellers, save the one you work with, and list its games:
xbox auth login
xbox seller list
xbox context set seller-id 1234567
xbox game list
Getting started explains each step. To work with a PlayFab title, follow the PlayFab quick start; your account needs Admin permission on the title.
Each row is a starting point. Run xbox help <command> for its options, or follow the link.
| Task | Command | Learn more | |---|---|---| | Find your games, with their Store IDs and XBOX title IDs | xbox game list | Games | | Create and manage XBOX sandboxes | xbox sandbox list | Sandboxes | | Manage test account batches | xbox test-account batch list | Test accounts | | Review and publish playtests | xbox playtest list | Playtests | | Check or switch a PC's XBOX sandbox | xbox pc sandbox get | PC | | Download, validate, and publish XBOX services configuration | xbox xbl config download | XBOX services | | Read and change PlayFab title data | xbox playfab title-data get | Title data | | Manage multiplayer servers | xbox playfab mps build list | Multiplayer Servers | | Call a title-level PlayFab API | xbox playfab api /Admin/GetTitleData | PlayFab API |
Note
The XBOX CLI is a technical preview, so commands and output can change between releases. Report problems and ideas in GitHub Issues, or run xbox feedback.
Start at the documentation index, or run xbox --help. The command reference covers every command, and Configuration covers settings and environment variables.
The CLI includes an agent skill, printed by xbox --skill, that teaches an AI agent to use the CLI. Add this to your agent's instructions, such as AGENTS.md:
Before running `xbox`, run `xbox --skill` and follow it.
See Using the XBOX CLI from agents for more.
The XBOX CLI is a technical preview, supported through GitHub Issues, not Microsoft Customer Service & Support. See SUPPORT.md for the full policy. Report security vulnerabilities as described in SECURITY.md, not through public issues.
Contributions go through GitHub Issues; this repository doesn't accept pull requests yet. See CONTRIBUTING.md for development guidance. This project has adopted the Microsoft Open Source Code of Conduct; see CODE_OF_CONDUCT.md.
Official releases send limited, anonymous usage and reliability telemetry to Microsoft. They never collect command arguments, PlayFab payloads, title IDs, identities, tokens, or local paths. To opt out, set XBOX_TELEMETRY_OPTOUT=1 or pass --disable-telemetry. See Telemetry, the Microsoft privacy statement, and PRIVACY.md.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos is subject to those third parties' policies.
Licensed under the MIT License — see LICENSE.
原文来源:github.com