template yq

limactl template yq

Query template expressions

Synopsis

Use the builtin YQ evaluator to extract information from a template. External references are embedded and default values are filled in before the YQ expression is evaluated.

Example: limactl template yq template:default ‘.images[].location’

The example command is equivalent to using an external yq command like this: limactl template copy –fill template:default - | yq ‘.images[].location’

limactl template yq TEMPLATE EXPR [flags]

Options

  -h, --help   help for yq

Options inherited from parent commands

      --debug               Debug mode
      --log-format string   Set the logging format [text, json] (default "text")
      --log-level string    Set the logging level [trace, debug, info, warn, error]
      --tty                 Enable TUI interactions such as opening an editor. Defaults to true when stdout is a terminal. Set to false for automation.
  -y, --yes                 Alias of --tty=false

SEE ALSO