Skip to main content
Version: 2.4.7

templates add Command

The templates add command adds a search template.

Usage

templates add <template_name> <search_syntax>

Parameters

ParameterDescriptionRequired?Default Value
template_nameTemplate name✔️N/A
search_syntaxSearch syntax template with value placeholders *✔️N/A

* Placeholders are defined using double curly braces ({{placeholder}}). Placeholders are replaced with provided values during render_console time. The name of the placeholder can be any valid alphanumeric string. For example, the template is({{kind}}) with expand parameters kind=volume becomes is(volume) during expand time.

Examples

Add a simple template to the search template library
> templates add filter_kind is({{kind}})
Template filter_kind added to the query library.
is({{kind}})

Further Reading