
# tdx profile

Your own gateway account profile (not a local connection profile).

Read your own gateway account profile and its linked identities with a bearer. This is your gateway account profile, not the local connection profile that the global --profile flag or TOKEDEX_PROFILE selects and auth login/logout manage; --profile only chooses which saved local credential is used for the read. Creating the first account, editing the profile and setting a local sign-in secret are session-only and refuse with SESSION_REQUIRED before any request or read; use the gateway dashboard.

Every command also takes the [global flags](/cli/reference#global-flags) and reads the [environment variables](/cli/reference#environment-variables) that the command reference lists once.

## Commands

| Command | Description | Type |
|---|---|---|
| [tdx profile show](/cli/reference/profile#tdx-profile-show) | Read your gateway account profile. | Read |
| [tdx profile identities](/cli/reference/profile#tdx-profile-identities) | List single sign-on identities linked to your account. | Read |
| [tdx profile create](/cli/reference/profile#tdx-profile-create) | Create the first gateway account (dashboard only). | Dashboard only |
| [tdx profile edit](/cli/reference/profile#tdx-profile-edit) | Change your gateway account display name (dashboard only). | Dashboard only |
| [tdx profile password](/cli/reference/profile#tdx-profile-password) | Set or change your local sign-in secret (dashboard only). | Dashboard only |

## tdx profile show

Read your gateway account profile.

**Reads**

Reads GET /control/v1/profile for the credential in use; any authenticated principal may read its own. kind is master, management_key or user. master: accountsExist and breakGlass. management_key: id. user: id, the user view (as users show reads it), localSignInSet (the gateway's hasPassword: whether a local sign-in secret is set), localSignInAllowed (the gateway's mayHoldPassword), lastSsoSignInAt and stepUpUntil (null for a bearer, which has no sign-in session). Fields that do not apply to kind are null. This is your gateway account profile, not the local connection profile that the global --profile flag or TOKEDEX_PROFILE selects and auth login/logout manage; --profile only chooses which saved local credential is used for the read. Every printed value comes from one fail-closed masking pass over the request, the whole gateway reply (including fields the CLI drops) and the CLI's projection, before selection/jq; █ marks masked values. kind is printed as the CLI's own validated literal. A reply that cannot be masked within the fixed limits fails with OUTPUT_MASK_LIMIT (exit 7) and no values; a malformed reply fails with INVALID_RESPONSE (exit 7). --dry-run still performs this read.

```bash
# GET /control/v1/profile
tdx profile show [flags]
```

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `kind` | string | Master, management_key or user. |
| `id` | string\|null | Admin key id or user id; null for master. |
| `accountsExist` | boolean\|null | Master: whether any gateway account exists. |
| `breakGlass` | boolean\|null | Master: whether this credential is break-glass. |
| `user` | public-user\|null | User: id, names, email, status, origin, creator, manageability, role assignments, last sign-in and linked identities. |
| `localSignInSet` | boolean\|null | User: whether a local sign-in secret is set. |
| `localSignInAllowed` | boolean\|null | User: whether this account may hold a local sign-in secret. |
| `lastSsoSignInAt` | string\|null | User: last single sign-on time. |
| `stepUpUntil` | string\|null | User: end of the recent sign-in window; null without a session. |

**Examples**

Read the masked public projection as versioned JSON:

```bash
tdx profile show --json
```

Select declared output fields:

```bash
tdx profile show --json=kind,id
```

**See also:** [tdx profile identities](/cli/reference/profile#tdx-profile-identities)

## tdx profile identities

List single sign-on identities linked to your account.

**Reads**

Reads GET /control/v1/profile/identities: the linked single sign-on identities of your own gateway account. Only a person has identities: a user principal, including a personal access token. The gateway refuses master keys and admin keys (FORBIDDEN, exit 4). This is your gateway account profile, not the local connection profile that the global --profile flag or TOKEDEX_PROFILE selects and auth login/logout manage; --profile only chooses which saved local credential is used for the read. Every printed value comes from one fail-closed masking pass over the request, the whole gateway reply (including fields the CLI drops) and the CLI's projection, before selection/jq; █ marks masked values.  A reply that cannot be masked within the fixed limits fails with OUTPUT_MASK_LIMIT (exit 7) and no values; a malformed reply fails with INVALID_RESPONSE (exit 7). --dry-run still performs this read.

```bash
# GET /control/v1/profile/identities
tdx profile identities [flags]
```

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `identities` | linked-identity[] | Id, provider id and display name, issuer host, link time and whether the provider is authoritative. |

**Examples**

Read the masked public projection as versioned JSON:

```bash
tdx profile identities --json
```

Select declared output fields:

```bash
tdx profile identities --json=identities
```

**See also:** [tdx profile show](/cli/reference/profile#tdx-profile-show)

## tdx profile create

Create the first gateway account (dashboard only).

**Dashboard only.** The gateway serves this only to a signed-in dashboard session, so the CLI refuses it with `SESSION_REQUIRED`.

Unavailable to this bearer-only CLI: POST /control/v1/profile is session-only: the gateway creates the first account only from the master key's own interactive dashboard session. Use the gateway dashboard. --dry-run also refuses: there is no reachable change to preview. No request is sent and no credential, profile or file is read. This is your gateway account profile, not the local connection profile that the global --profile flag or TOKEDEX_PROFILE selects and auth login/logout manage; --profile only chooses which saved local credential is used for the read.

```bash
# POST /control/v1/profile
tdx profile create [flags]
```

**See also:** [tdx profile show](/cli/reference/profile#tdx-profile-show), [tdx open](/cli/reference/open)

## tdx profile edit

Change your gateway account display name (dashboard only).

**Dashboard only.** The gateway serves this only to a signed-in dashboard session, so the CLI refuses it with `SESSION_REQUIRED`.

Unavailable to this bearer-only CLI: PATCH /control/v1/profile is session-only: only a person's own interactive dashboard session may change their profile. Use the gateway dashboard. --dry-run also refuses: there is no reachable change to preview. No request is sent and no credential, profile or file is read. This is your gateway account profile, not the local connection profile that the global --profile flag or TOKEDEX_PROFILE selects and auth login/logout manage; --profile only chooses which saved local credential is used for the read.

```bash
# PATCH /control/v1/profile
tdx profile edit [flags]
```

**See also:** [tdx profile show](/cli/reference/profile#tdx-profile-show), [tdx open](/cli/reference/open)

## tdx profile password

Set or change your local sign-in secret (dashboard only).

**Dashboard only.** The gateway serves this only to a signed-in dashboard session, so the CLI refuses it with `SESSION_REQUIRED`.

Unavailable to this bearer-only CLI: POST /control/v1/profile/password is session-only: only a person's own interactive dashboard session may set it, and secrets are never accepted as command input. Use the gateway dashboard. --dry-run also refuses: there is no reachable change to preview. No request is sent and no credential, profile or file is read. This is your gateway account profile, not the local connection profile that the global --profile flag or TOKEDEX_PROFILE selects and auth login/logout manage; --profile only chooses which saved local credential is used for the read.

```bash
# POST /control/v1/profile/password
tdx profile password [flags]
```

**See also:** [tdx profile show](/cli/reference/profile#tdx-profile-show), [tdx open](/cli/reference/open)
