CLI Finder / tools / yq

yq for YAML, XML, and JSON transformations

A scriptable CLI for transforming YAML, JSON, XML, TOML, and properties files.

Agent 適合度: 92/100 検証済み発行元 継続的にメンテナンス中
92 /100

yq is useful for agents when usage is constrained to predictable commands and documented output.

Installability 96/100

Availability through common package managers and simple install commands.

Structured output 92/100

JSON, YAML, CSV, markdown, or stable machine-readable output for agents.

Safety 78/100

Clear read-only commands, dry-run options, and approval gates for destructive work.

Agent docs 84/100

How easily an agent can learn the command surface from docs, help, and examples.

インストール方法

Recommended $ brew install yq

よく使うコマンド

Show help · 安全 $ yq --help

Inspect command surface before automation.

Check version · 安全 $ yq --version

Verify the installed CLI.

Agent 使用例

Claude Code / Codex CLI / Gemini CLI Use yq only with non-interactive commands. Prefer structured output: yaml, json, text. Ask before destructive operations.

安全メモ

  • Prefer non-interactive usage and explicit output flags when an agent runs this command.
  • Treat commands that deploy, delete, charge money, or mutate production data as approval-required.
  • Record the exact command, output format, and scope before adding it to an agent workflow.

What agents can use it for

A scriptable CLI for transforming YAML, JSON, XML, TOML, and properties files.

Agent usage rule

Prefer non-interactive commands, structured output, and approval gates for state-changing operations.

Install

brew install yq