LinuxCommandLibrary

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.
-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.
-s
Slurp mode: read multiple inputs into an array.

HISTORY

qq was created by JFryy and is written in Go.

SEE ALSO

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard