bpm template
Render, run, and publish templates from the active BRS.
render
bpm template render <id> [--alias <name>] [--dir <project_dir>] [--dry] [--param KEY=VALUE ...] [--adhoc] [--out <adhoc_dir>]
- Project mode: renders into
${ctx.project.name}/${ctx.template.id}/under--dir(default.), updatesproject.yaml.- With
--alias, the rendered folder and project entry use the alias asid, and recordsource_template=<id>so you can have multiple instances of the same template in one project.
- With
- Ad‑hoc mode: with
--out, renders into that directory (treatsrender.intoas.) and writesbpm.meta.yaml; skips hooks and project updates. With--adhoc(no--out), BPM expects the template to providerender.adhoc_out_resolverto compute the output path; otherwise it errors. --dryprints the plan only; no file changes.- Tip: discover template parameters with
bpm template info <id>. - If the template declares
tools:in its descriptor, render prints a non-fatal warning for tools not found onPATHso you can activate the right environment beforerun. - Template authors can define a resolver for ad‑hoc output defaults:
render: adhoc_out_resolver: resolvers.out_from_bcl # returns a path/string
run
bpm template run <id> [--dir <project_dir>]
- Runs the
run.entry(defaultrun.sh) in the rendered folder. Executes hooks if configured.
publish
bpm template publish <id> [--dir <project_dir>]
- Executes all resolvers in
publish:and persists results toproject.yamlunder this template’spublishedmap.
list
bpm template list [--format table|plain|json]
- Shows available templates in the active BRS with their descriptions.
info
bpm template info <id> [--format table|plain|json]
- Shows detailed info for a template: params (type/required/default/cli), render target and files, hooks, dependencies, tools, and publish resolvers.
readme
bpm template readme <id>
- Prints the template README.md from the active BRS (if present).
Tips
- Use
--paramto override descriptor defaults; types are coerced (int,float,bool,str). - Missing required params cause render to fail early with a clear error.
- Default output format is
table(use--format plain|jsonto override).