Getting started with the XBOX CLI

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

Set up the XBOX CLI and check that you can reach your organization's Partner Center games. By the end, you'll have signed in, saved a default seller, and listed its games.

Before you begin

  • An account with access to an existing Partner Center seller.

1. Install the XBOX CLI

Install the CLI as described in Installation, then confirm it runs:

xbox --help

2. Sign in

Sign in with the account that has access to your Partner Center seller. The command opens your browser:

xbox auth login

The CLI shows the account you signed in as:

Successfully signed in as: dev@nodpublishers.com
Token expires at: YYYY-MM-DD HH:MM:SS

If it's the wrong account, run xbox auth login again and choose the right one. See Authentication.

3. Choose a seller

A seller is the Partner Center organization whose games you work with. List the sellers your account can use:

xbox seller list --output table

Find your organization in the NAME column, and copy its SELLER ID.

4. Save the seller

Save the seller ID you copied as your default, so later commands use it:

xbox context set seller-id <SELLER_ID>

To use another seller for one command, pass --seller-id. See Context.

5. List games

List the seller's games:

xbox game list --output table

If the list shows another seller's games, see the known issue xbox game commands ignore --seller-id.

Next steps