> ## 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 unifier

> Generated reference for the homelab api unifier commands

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

## homelab api unifier analyze

Analyze spec to get requirements (Phase 1).

Safe, idempotent. Returns hardware requirements, detected add-ons, required credentials.

```bash theme={null}
homelab api unifier analyze [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/analyze` |
| Changes state | Yes |
| MCP tool | `analyze_spec` |

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

## homelab api unifier discard-creation-draft

End the signed-in owner's draft of one creation process.

Removes the owner's draft of one creation process, after an accepted create or when the owner leaves it. Removing a draft that does not exist succeeds.

```bash theme={null}
homelab api unifier discard-creation-draft [flags]
```

> [!WARNING]
>
> Requires confirmation: This operation discards the owner's unfinished answers for this creation process. Pass `--yes` or answer the prompt; a non-interactive run without `--yes` stops before any request with exit code 9.

| | |
| - | - |
| HTTP | `DELETE /api/v1/creation/drafts/{key}` |
| Changes state | Yes |
| MCP tool | None |

| Argument | Type | Description |
| - | - | - |
| `--key` | string | **Required.** The creation process and its target, as the wizard names it (stack-create, stack-install-\<server>, add-use-case-\<stack>, add-server-\<stack>). |

## homelab api unifier get-creation-draft

Read where the signed-in owner stands in one creation process.

Returns the owner's draft of one creation process: the current and furthest step and the non-secret answers, so a creation started in one frame (the kombify Cloud popup, a sheet, one step) continues in another one or on another device. An expired draft is gone; without a draft the answer is `draft: null`.

```bash theme={null}
homelab api unifier get-creation-draft [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/creation/drafts/{key}` |
| Changes state | No |
| MCP tool | None |

| Argument | Type | Description |
| - | - | - |
| `--key` | string | **Required.** The creation process and its target, as the wizard names it (stack-create, stack-install-\<server>, add-use-case-\<stack>, add-server-\<stack>). |

## homelab api unifier layout recommend

Compute and record a verified workload layout for a planned change.

Plans where the selected goals run for an add-server or add-use-case change. An add-server change is planned on the nodes of its owned StackKit deployment; an add-use-case change is planned over every server of the owner's homelab in the tenant (all owned deployments and connected bare servers), and `target` names where it is carried out: `extend` a deployment (the one in `stack_id` or another one), or `found` a new deployment on a bare server (information only). Verifies the option with the pinned StackKits feasibility check and, when it is feasible, records it as an open recommendation the owner can accept inside the wizard run on the target deployment, reject or snooze. An option that is not verified is returned with state `unverified` and no id. `pins` carries the owner's "Choose another server" choices of an add-use-case change (use case id to server id): the planner re-solves with them on the deployment that declares the chosen servers, and the result is verified like any other; a server outside the owner's deployments in this tenant is refused with `layout_pin_server_unavailable`. Records the proposal but changes no infrastructure.

```bash theme={null}
homelab api unifier layout recommend [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/layout/recommendations` |
| Changes state | Yes |
| MCP tool | `recommend_layout` |

| Argument | Type | Description |
| - | - | - |
| `--compute-profile` | string | — |
| `--flow` | string | **Required.** One of `add-server`, `add-use-case`. |
| `--goals` | string\[] | **Required.** |
| `--pins` | object | The owner's server choice per use case of an add-use-case change, use case id to server id. Every chosen server must belong to one deployment of the owner in this tenant, and every pinned use case must be part of `goals`. |
| `--planned-node` | object | The node an add-server run brings, when its size is known before it enrolls. |
| `--stack-id` | string | **Required.** |
| `--use-case-capabilities` | object | — |
| `--use-case-settings` | object | — |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api unifier layout reject

Reject one layout recommendation.

Marks an open or snoozed layout recommendation of the authenticated owner as rejected so it is no longer offered, and answers its updated view. A recommendation in any other state answers 409 `layout_recommendation_changed`.

```bash theme={null}
homelab api unifier layout reject <recommendation-id> [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/layout/recommendations/{id}/reject` |
| Changes state | Yes |
| MCP tool | `reject_layout_recommendation` |

| Argument | Type | Description |
| - | - | - |
| `<recommendation-id>` | string | **Required.** Layout recommendation id. |

## homelab api unifier layout snooze

Snooze one layout recommendation until a later time.

Hides an open or snoozed layout recommendation of the authenticated owner until `until`, which must lie in the future and within 90 days, and answers its updated view. A recommendation in any other state answers 409 `layout_recommendation_changed`.

```bash theme={null}
homelab api unifier layout snooze <recommendation-id> [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/layout/recommendations/{id}/snooze` |
| Changes state | Yes |
| MCP tool | `snooze_layout_recommendation` |

| Argument | Type | Description |
| - | - | - |
| `<recommendation-id>` | string | **Required.** Layout recommendation id. |
| `--until` | string | **Required.** End of the snooze, at most 90 days ahead. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api unifier pipeline preview

Preview pipeline results without side effects.

Safe, idempotent. Shows what would be generated. Backend validation or StackKit resolution failures return 200 with data.valid=false and structured data.errors; malformed input and auth failures remain HTTP errors.

```bash theme={null}
homelab api unifier pipeline preview [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/pipeline/preview` |
| Changes state | Yes |
| MCP tool | `preview_pipeline` |

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

## homelab api unifier pipeline run

Run full unifier pipeline (validate + analyze + unify + generate).

Side-effecting -- generates IaC output files.

```bash theme={null}
homelab api unifier pipeline run [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/pipeline` |
| Changes state | Yes |
| MCP tool | `run_pipeline` |

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

## homelab api unifier pipeline validate

Validate pipeline inputs without executing.

```bash theme={null}
homelab api unifier pipeline validate [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/pipeline/validate` |
| Changes state | Yes |
| MCP tool | `validate_pipeline` |

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

## homelab api unifier put-creation-draft

Keep where the signed-in owner stands in one creation process.

Replaces the owner's draft of one creation process and renews its expiry (seven days after the last write). The body is decoded strictly. Answers that carry a password, passphrase, token, key or other secret in a field named for it are refused with `creation_draft_secret_field`, never stored or stripped; the answer names the field, never its value. The owner's expired drafts are removed with the write.

```bash theme={null}
homelab api unifier put-creation-draft [flags]
```

| | |
| - | - |
| HTTP | `PUT /api/v1/creation/drafts/{key}` |
| Changes state | Yes |
| MCP tool | None |

| Argument | Type | Description |
| - | - | - |
| `--key` | string | **Required.** The creation process and its target, as the wizard names it (stack-create, stack-install-\<server>, add-use-case-\<stack>, add-server-\<stack>). |
| `--answers` | object | **Required.** The wizard's answers without secrets, at most 48 KiB. |
| `--furthest` | string | **Required.** One of `goals`, `server`, `access`, `users`, `login`. |
| `--process` | string | **Required.** One of `stack`, `place-on-server`, `add-server`, `add-server-found`, `join-on-server`, `add-use-case`, `homelab-settings`. |
| `--step` | string | **Required.** One of `goals`, `server`, `access`, `users`, `login`. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api unifier recommendations

Rank StackKits for the goals and services of a wizard selection.

Computes ranked StackKit recommendations from the selected goals, the deployment lane and surface, and the authenticated owner's worker inventory and self-disclosure. Safe and idempotent: nothing is stored. A non-ready status (`incomplete`, `stale`, `degraded`) is still a useful answer that names the evidence to supply.

```bash theme={null}
homelab api unifier recommendations [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/recommendations` |
| Changes state | No |
| MCP tool | `recommend_stackkits` |

| Argument | Type | Description |
| - | - | - |
| `--available-goals` | string\[] | Use cases the released catalog offers. |
| `--compute-profile` | string | — |
| `--deployment-lane` | string | **Required.** One of `saas`, `self-hosted`. |
| `--goals` | string\[] | — |
| `--provider-id` | string | — |
| `--selection-intent` | string | all asks which of available\_goals the full-homelab template should preselect. One of `all`. |
| `--services` | string\[] | — |
| `--smart-home-context` | object | — |
| `--smart-home-settings` | object | Smart-home setting decisions by id. |
| `--surface` | string | **Required.** One of `easy`, `techie`. |
| `--use-case-capabilities` | object | — |
| `--use-case-settings` | object | — |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api unifier unify

Unify specifications (Phase 2).

```bash theme={null}
homelab api unifier unify [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/unify` |
| Changes state | Yes |
| MCP tool | `unify_spec` |

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

## homelab api unifier validate

Validate a stack specification against CUE schemas.

Safe, idempotent. No side effects.

```bash theme={null}
homelab api unifier validate [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/unifier/validate` |
| Changes state | Yes |
| MCP tool | `validate_spec` |

| Argument | Type | Description |
| - | - | - |
| `--body` | json | **Required.** 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.