AptLynx

Command-line tool

trdsql

brew/trdsql

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

CLI tool that can execute SQL queries on CSV, LTSV, JSON, YAML and TBLN

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

scoop install trdsql

macOS

brew install trdsql

Linux

brew install trdsql

Convert object data from multiple JSON files to a CSV file with header (`-oh`) and double quote

trdsql -ocsv -oh "SELECT * FROM path/to/directory/*.json" | sed 's/\([^,]*\)/"&"/g' > path/to/file.csv

Interpret JSON list as a table and put objects inside as columns (`path/to/file.json: {"list":[{"age":"26","name":"Tanaka"}]}`)

trdsql "SELECT * FROM path/to/file.json::.list"

Manipulate complex SQL query with data from multiple CSV files with first line is header (`-ih`)

trdsql -icsv -ih "SELECT column1,column2 FROM path/to/file*.csv WHERE column2 != '' ORDER BY column1 GROUP BY column1"

Browse

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents