Limai Docs
CLI Reference

download

Download extracted data from a table

$limai download <tableId>

Download extracted data from a table. Streams NDJSON to a file or prints JSON to stdout. Supports auto-pagination to fetch all rows.

Options
--output <file>Output file path (streams NDJSON to file)
--limit <n>Max rows to download
--allDownload all rows with auto-pagination
--page-size <n>Rows per API call(default: 100)
--order <order>Sort order (asc or desc)(default: desc)
--status <status>Filter by row status
--jsonOutput raw JSON
--verboseEnable debug logging

Output Formats

  • Without --output: All rows are collected in memory and printed as a JSON array to stdout.
  • With --output: Rows are streamed to the file in NDJSON format (one JSON object per line), which is memory-efficient for large datasets.

Examples

Download first 100 rows as JSON

limai download tbl_abc123 --json

Download all rows to a file

limai download tbl_abc123 --all --output data.ndjson

Download completed rows only

limai download tbl_abc123 --all --status COMPLETED --output completed.ndjson

Download with custom page size

limai download tbl_abc123 --all --page-size 500 --output data.ndjson

Download limited rows in ascending order

limai download tbl_abc123 --limit 50 --order asc --json