bpm template
Render, run, and publish templates from the active BRS.
render
bpm template render <id> [--dir <project_dir>] [--dry] [--param KEY=VALUE ...] [--out <adhoc_dir>]
- Project mode: renders into
${ctx.project.name}/${ctx.template.id}/
under--dir
(default.
), updatesproject.yaml
. - Ad‑hoc mode: with
--out
, renders into that directory (treatsrender.into
as.
) and writesbpm.meta.yaml
; skips hooks and project updates. --dry
prints 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 onPATH
so you can activate the right environment beforerun
.
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.yaml
under this template’spublished
map.
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.
Tips
- Use
--param
to 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|json
to override).