---
url: https://docs.mochiexec.io/reference/cli/mochi_template_get.md
description: >-
  Get a flowfile template's details. Either it's registered name or file path
  can be used.
---

# mochi template get

Get a flowfile template's details. Either it's registered name or file path can be used.

```shell
mochi template get [flags]
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-f, --file` | `string` | Path to the template file. It must be a valid flow file template. |
| `-h, --help` |  | help for get |
| `-o, --output` | `string` | Output format. One of: yaml, json, or tui. |
| `-t, --template` | `string` | Registered template name. Templates can be registered in the flow configuration file or with 'flow template add'. |

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