← 返回命令列表

Linux command

qq 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert YAML to JSON

qq '.' [config.yaml] -o json

Query a TOML file

qq '.database.host' [config.toml]

Convert CSV to Parquet

qq '.' [data.csv] -o parquet

Interactive query mode

qq . [file.json] --interactive

说明

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.

参数

-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.

FAQ

What is the qq command used for?

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.

How do I run a basic qq example?

Run `qq '.' [config.yaml] -o json` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --input _FORMAT_ do in qq?

Specify input format explicitly (e.g., json, yaml, toml, csv, xml).