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

# hexr init

> Generate a hexr.yaml skeleton for a new project.

```bash theme={null}
hexr init --tenant acme-bank
```

Writes a `hexr.yaml` with the fields a project needs, commented, so the first
thing you do is not guess at schema.

## Options

**--tenant, -t TEXT** `string` *required*

Tenant identifier, e.g. `acme-bank`. Required, and deliberately so — a tenant
is not something to default, because the wrong value produces identities in
the wrong trust domain.

**--route \[kubernetes|managed]** `string` (default: kubernetes)

Default deploy route. `kubernetes` deploys into your own cluster; `managed`
targets Hexr Cloud.

**--output, -o PATH** `path` (default: hexr.yaml)

Where to write the skeleton.

**--force** `flag`

Overwrite an existing file. Without it, `hexr init` refuses rather than
silently replacing configuration you may have edited.

## Related

* [hexr build](https://docs.hexr.dev/cli/build.md) — reads this file
* [hexr cluster](https://docs.hexr.dev/cli/cluster.md) — registers the cluster you deploy into


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