Skip to content

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 ​

FlagTypeDescription
-h, --helphelp for template

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also ​