Skip to main content
xbox auth manages the Microsoft Entra ID account that other commands use. See Authentication for how sign-in works, including as a service principal.
No auth command accepts --output table. When XBOX_AUTHENTICATION__MODE selects a service-principal mode, auth login and auth logout exit 1, and auth status describes the service principal.

auth login

Sign in with Microsoft Entra ID, replacing any account already signed in.
The command opens the system browser and, on success, prints the account and when its token expires. Every later command uses that account. If more than one account is cached, for example by an earlier CLI version, commands fail until you run auth login again.

auth logout

Sign out every cached account.
The command prints the accounts it signed out, or that no account was signed in. Values saved with context set are kept, and signing back in as the same account restores them.

auth status

Show the signed-in account and its token. The command can refresh the token with Entra ID, but doesn’t use it, so it doesn’t confirm that other commands will accept it. To see the saved seller and PlayFab title, run xbox context get.
The output is text unless you pass --output. For a script, request JSON and check signedIn:

Service-principal modes

In a service-principal mode, auth status gets an app-only token and reports its claims. It never prints the token.
principalType is app for a service principal or managed identity. See Confirm the identity.
Last modified on November 18, 2026