yq CLI reference
ModularPipelines.Yq provides strongly typed access to the yq CLI.
Executable prerequisite
This package does not install the yq executable. Install it separately and ensure yq is available on PATH.
Follow the executable's official documentation for installation instructions.
Package installation
dotnet add package ModularPipelines.Yq
Resolve the service with context.Tools.Yq.
Projects using C# 13 or another .NET language can use context.Tools.Get<ModularPipelines.Yq.Services.IYq>() instead.
Module example
Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:
var yq = context.Tools.Yq;
Commands
| CLI command | Options record |
|---|---|
yq eval | YqEvalOptions |
yq eval-all | YqEvalAllOptions |