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

# stackkit generate

> Generate governed deployment artifacts from a stack specification

Generate governed deployment artifacts from a stack specification.

Aliases: `gen`

Resolve canonical StackSpec v2 intent through the embedded CUE authority, persist the exact ResolvedPlan atomically, and render its governed artifacts transactionally beneath the plan-owned outputRoot.

StackSpec v1 generation is retired. Use a published exact-v0.6 binary for a historical workspace or migrate the intent to StackSpec v2 before generating. Legacy `--force` and `--fragments` switches are rejected by the native v2 path.

```bash theme={null}
stackkit generate [flags]
```

| Flag              | Type   | Default  | Description                                                                                  |
| ----------------- | ------ | -------- | -------------------------------------------------------------------------------------------- |
| `--force, -f`     | bool   | —        | Retired legacy overwrite switch; rejected for StackSpec v2                                   |
| `--fragments`     | bool   | —        | Retired legacy fragment switch; rejected for StackSpec v2                                    |
| `--inventory`     | string | —        | Architecture v2 observed Inventory (otherwise one conventional inventory file is selected)   |
| `--local-node`    | string | —        | Architecture v2 node explicitly owned by this local generate process                         |
| `--local-site`    | string | —        | Architecture v2 Site explicitly owned by this local generate process                         |
| `--output, -o`    | string | `deploy` | Override the plan-owned output root                                                          |
| `--resolved-plan` | string | —        | Architecture v2 canonical ResolvedPlan (default: \<outputRoot>/.stackkit/resolved-plan.json) |

**Examples**

```bash theme={null}
# Resolve the plan and render deployment artifacts into deploy/
stackkit generate

# Render into an explicit output root
stackkit generate --output ./deploy

# Name the Site and node this process owns
stackkit generate --local-node main --local-site home
```
