Skip to content
← All release notesNewanfra0.17.0

YAML or JSON from every command, with jq built in

Every command answers with `--yaml` or `--json`, filters its answer with `--jq`, and describes its input and output with `--schema`.

Core commands write YAML by default, and CLI-only ones such as anfra init, anfra auth and anfra publish write a format for people. Either way, --yaml or --json gives you one document to script against:

anfra show --jq '.object.datasets[].name'

--jq runs a jq expression on the answer, with no jq to install. --schema prints a command's input and output as JSON Schema, instead of running it.

Errors go to stderr with a stable code and a scope (user, client or server), and the exit code is non-zero. --non-interactive asks no questions, and refuses what would need an answer.

Checks are subcommands now: anfra query validate, anfra query compile, anfra publish check and anfra update check. anfra status reports the repo too.

Full changelog (opens in a new tab)