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

# homelab api stack-identity

> Generated reference for the homelab api stack-identity commands

> [!NOTE]
>
> Generated from the Homelab v0.49.2 release (source `2614eaba28d8`). For an installed version, `homelab api <command> --help` is authoritative.

## homelab api stack-identity get

Get stack identity metadata.

```bash theme={null}
homelab api stack-identity get [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/auth/stack-identity` |
| Changes state | No |
| MCP tool | `get_stack_identity` |

## homelab api stack-identity sync

Apply one kombify Cloud sync step to the local stack identity.

Takes the kombify Cloud stack identity record (read by the caller through the Gateway with the user's own token; `null` when Cloud has none) and applies the sync rules to the local copy: adopt the Cloud record, confirm an identical one, or answer the body to push to Cloud with the `If-Match` revision. The call itself never writes to Cloud. When no local stack identity exists yet it only reports `homelab_missing`.

```bash theme={null}
homelab api stack-identity sync [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/auth/stack-identity/sync` |
| Changes state | Yes |
| MCP tool | `sync_stack_identity` |

| Argument | Type | Description |
| - | - | - |
| `--cloud` | string | **Required.** The Cloud record, or null when Cloud has no stack identity. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api stack-identity update

Update stack identity metadata.

```bash theme={null}
homelab api stack-identity update [flags]
```

| | |
| - | - |
| HTTP | `PUT /api/v1/auth/stack-identity` |
| Changes state | Yes |
| MCP tool | `update_stack_identity` |

| Argument | Type | Description |
| - | - | - |
| `--body` | json | **Required.** JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api stack-identity update-conditional

Update the stack identity only when its local revision still matches.

Revision-checked variant of the stack identity update. `If-Match` carries the `local_revision` read from the stack identity, in double quotes (for example `"3"`); a stale revision answers 412 and a reused `Idempotency-Key` with different content answers 409. The edit is stored locally and marked pending until it is synced with kombify Cloud. The body is limited to 4096 bytes. Requires the Postgres control plane (503 `stack_identity_store_unavailable` otherwise).

```bash theme={null}
homelab api stack-identity update-conditional [flags]
```

| | |
| - | - |
| HTTP | `PUT /api/v1/auth/stack-identity/conditional` |
| Changes state | Yes |
| MCP tool | `update_stack_identity_if_unchanged` |

| Argument | Type | Description |
| - | - | - |
| `--if-match` | string | **Required.** Strong local revision in double quotes, for example `"3"`. |
| `--animation-enabled` | boolean | — |
| `--animation-style` | string | — |
| `--character-id` | string | — |
| `--glow-color-override` | string | — |
| `--icon-style` | string | One of `filled`, `glass`, `gradient`, `outlined`. |
| `--name` | string | **Required.** Trimmed, without control characters. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.