Manage reusable templates for note creation.
bwrb template <subcommand>
| Subcommand | Description |
|---|
| list | List templates |
| new | Create a new template |
| edit | Edit an existing template |
| delete | Delete a template |
| validate | Validate templates against schema |
# List templates for a type
bwrb template new task --name bug-report
bwrb template edit task bug-report
Templates are stored in .bwrb/templates/{type}/{subtype}/{name}.md.
List templates in your vault, optionally filtered by type.
bwrb template list [options] [type] [name]
| Argument | Description |
|---|
type | Filter to templates for this type (e.g., task, objective/milestone) |
name | Show details for a specific template |
| Option | Description |
|---|
-o, --output <format> | Output format: text, json |
# List templates for a specific type
bwrb template list objective/task
# Show specific template details
bwrb template list task bug-report
bwrb template list --output json
Create a new template for a specific note type.
bwrb template new [options] [type]
| Argument | Description |
|---|
type | Type to create template for (prompts if omitted) |
| Option | Description |
|---|
--name <name> | Template name (without .md extension) |
--description <desc> | Template description |
--json <data> | Create template non-interactively from JSON |
# Create template with prompts
bwrb template new task --name bug-report
bwrb template new task --name bug-report --description "Bug report with repro steps"
bwrb template new task --name quick --json '{"defaults": {"status": "raw"}}'
# Full template definition
bwrb template new idea --name research --json '{
"description": "Research note template",
"defaults": {"status": "raw", "priority": "medium"},
"prompt-fields": ["deadline"]
Edit an existing template interactively or via JSON patch.
bwrb template edit [options] [type] [name]
| Argument | Description |
|---|
type | Type of template to edit |
name | Template name (shows picker if omitted) |
| Option | Description |
|---|
--json <data> | Update template non-interactively (patch/merge semantics) |
bwrb template edit task bug-report
bwrb template edit objective/task default
bwrb template edit task bug-report --json '{"defaults": {"priority": "high"}}'
bwrb template edit idea default --json '{"description": "Updated description"}'
Delete a template from your vault.
bwrb template delete [options] [type] [name]
| Argument | Description |
|---|
type | Type of template to delete |
name | Template name (shows picker if omitted) |
| Option | Description |
|---|
-f, --force | Skip confirmation prompt |
-o, --output <format> | Output format: text, json |
# Delete with confirmation
bwrb template delete task bug-report
bwrb template delete task bug-report --force
bwrb template delete task bug-report -f -o json
Validate templates to ensure they’re compatible with the current schema.
bwrb template validate [options] [type]
| Argument | Description |
|---|
type | Validate templates for specific type only |
| Option | Description |
|---|
-o, --output <format> | Output format: text, json |
Checks templates for:
- Valid
template-for type reference
- Default field values match schema types
- Default enum values are valid
- Prompt-fields reference existing fields
- No references to removed schema fields
# Validate templates for specific type
bwrb template validate task
bwrb template validate objective/milestone
bwrb template validate --output json
| Code | Meaning |
|---|
0 | All templates valid |
1 | Validation errors found |