---
url: https://docs.mochiexec.io/reference/cli/mochi_template_add.md
description: Register a flowfile template by name.
---

# mochi template add

Register a flowfile template by name.

```shell
mochi template add NAME DEFINITION_TEMPLATE_PATH [flags]
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for add |
| `-o, --output` | `string` | Output format. One of: yaml, json, or tui. |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync flow cache and workspaces |

## See also

* [mochi template](mochi_template.md) — Manage flowfile templates.
