> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PlayFab

> Inspect and manage the PlayFab services of one title, and the options and response envelope that every playfab command shares.

`xbox playfab` inspects and manages the PlayFab services of one PlayFab title. Each service
has its own page.

```text theme={null}
xbox playfab <command> [flags]
```

Every `playfab` command needs a PlayFab title ID, except the studio commands:
`service-principal`, and `api` with a `/Studio/` path. Pass `--playfab-title-id`, or save
a default with `xbox context set playfab-title-id <id>`; see [Context](https://docs.xbox.com/tools/xbox-cli/commands/context.md).

## Commands

| Command | Description |
| - | - |
| [`api`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/api) | Call any PlayFab API endpoint directly. |
| [`mps`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/mps) | Manage Multiplayer Servers (MPS) (Experimental). |
| [`file`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/file) | Manage entity files. |
| [`title-data`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/title-data) | Manage title data key/value pairs. |
| [`api-policy`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/api-policy) | Manage the title's API access policy. |
| [`cloudscript`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/cloudscript) | Manage scripts and function registrations (Experimental). |
| [`group`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/group) | Manage groups and membership (Experimental). |
| [`player-data`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/player-data) | Manage title- or publisher-scoped player data. |
| [`economy`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/economy) | Manage Economy v2 inventory. |
| [`experiment`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/experiment) | Read a title's A/B experiments, scorecards, treatment assignments, and exclusion groups (Experimental). |
| [`player`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/player) | Look up player accounts (Experimental). |
| [`privacy`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/privacy) | Export a player's data, and list the titles they've played (Experimental). |
| [`service-principal`](https://docs.xbox.com/tools/xbox-cli/commands/playfab/service-principal) | Grant, inspect, and revoke a Microsoft Entra ID service principal's access to a studio and its titles (Experimental). |

## Options

Every `playfab` command accepts these in addition to the
[global options](https://docs.xbox.com/tools/xbox-cli/commands.md#global-options).

| Option | Description |
| - | - |
| `--data-only` | Strip the PlayFab `{code,status,data}` response envelope and write only the `data` field. |
| `--confirm`, `--yes`, `-y` | Confirm a `Delete*` or `Shutdown*` PlayFab API operation. Required outside an interactive terminal. See [Safety and destructive operations](https://docs.xbox.com/tools/xbox-cli/safety.md). |

## Response envelope

By default, commands write PlayFab's full response envelope:

```json theme={null}
{
  "code": 200,
  "status": "OK",
  "data": {
    "Data": {
      "SettingA": "the value"
    }
  }
}
```

Add `--data-only` to write only the `data` payload, and `--output json-compact` for
single-line JSON:

```bash theme={null}
xbox --playfab-title-id ABC123 --data-only --output json-compact playfab api /Admin/GetTitleData
```

`file upload`, `file download`, and `file delete` don't return the envelope. They write
nothing to stdout, and report what they did on stderr. See [Files](https://docs.xbox.com/tools/xbox-cli/commands/playfab/file.md#output).


## Related topics

- [PlayFab Support](https://docs.xbox.com/services/playfab/pricing/support.md)
- [What is PlayFab?](https://docs.xbox.com/services/playfab/get-started/what-is-playfab.md)
- [C# PlayFab SDK](https://docs.xbox.com/services/playfab/sdks/c-sharp/index.md)
- [PlayFab concepts](https://docs.xbox.com/services/playfab/get-started/concepts.md)
- [Multiplayer with PlayFab](https://docs.xbox.com/services/playfab/multiplayer/mpintro.md)
