LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

qq

Multi-format transcoder and query tool powered by jq syntax

TLDR

Convert YAML to JSON
$ qq '.' [config.yaml] -o json
copy
Query a TOML file
$ qq '.database.host' [config.toml]
copy
Convert CSV to Parquet
$ qq '.' [data.csv] -o parquet
copy
Interactive query mode
$ qq . [file.json] --interactive
copy

SYNOPSIS

qq [filter] [file] [options]

DESCRIPTION

qq is a multi-format transcoder and query tool powered by jq syntax via the gojq engine. It supports reading and writing JSON, YAML, TOML, XML, HCL/Terraform, CSV, TSV, INI, Parquet, MessagePack, CBOR, Avro, and more. Format is auto-detected from file extensions.

PARAMETERS

-i, --input FORMAT

Specify input format explicitly (e.g., json, yaml, toml, csv, xml).
-o, --output FORMAT
Specify output format.
--interactive
Interactive query builder with autocomplete and real-time preview.
--stream
Streaming mode for memory-efficient processing of large files (identical to jq).
-s, --slurp
Slurp mode: read multiple inputs into an array.
-e
Exit-status mode: use the last value for the exit code.
--monochrome-output
Disable colored output.
--help
Display help information.

HISTORY

qq was created by JFryy and is written in Go.

SEE ALSO

jq(1), yq(1), oq(1), gron(1)

Copied to clipboard
Kai