mochi template
Manage flowfile templates.
Synopsis
Manage flowfile templates. A template is a reusable flowfile scaffold that can generate executables, directory structures, and configuration files via 'template generate'.
Templates are registered by name for easy reuse. Use 'template add' to register a template, 'template generate' to scaffold from one, and 'template list' to see what's available.
Templates (*.flow.tmpl files) are also auto-discovered within your workspaces during 'flow sync' — dropping one into a workspace makes it available without registering it. Registered templates take precedence over discovered ones when names collide; use a 'workspace/name' reference to target a specific discovered template.
Options
| Flag | Type | Description |
|---|---|---|
-h, --help | help for template |
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 — Run and organize your development tasks
- mochi template add — Register a flowfile template by name.
- mochi template generate — Generate workspace executables and scaffolding from a flowfile template.
- mochi template get — Get a flowfile template's details. Either it's registered name or file path can be used.
- mochi template list — List registered and workspace-discovered flowfile templates.
- mochi template remove — Unregister a flowfile template by name.