Skip to main content
Version: 4.2.0

template add Command

The template add command adds a search template.

Usage

templates add <template_name> <search_syntax>

Parameters

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

* 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