Data: export
data_exportExport matching records to CSV, JSON, or JSONL files page by page, or stream to stdout. Use filters, choose fields, and force overwrite only when needed.
Instructions
Export records to a CSV, JSON or JSONL file (streamed page by page). Writes every matching record to a file on the machine running the CLI, or to standard output when the file is -, fetching page by page. Uses the same filter syntax as data_list; one-to-many fields are left out unless named in the field list. It won't overwrite an existing file unless forced. For one page of records, use data_list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Output file, or - for stdout | |
| force | No | Overwrite FILE if it already exists | |
| entity | Yes | Entity name | |
| fields | No | Comma-separated fields to export (default: all) | |
| filter | No | Same filter syntax as 'data list --filter' | |
| format | No | csv, json or jsonl (default: from the file extension) | |
| page_size | No | Records fetched per request (default: 200, max: 1000) | |
| no_formula_guard | No | CSV: don't prefix text starting with = + - @ with a quote (exact values, but unsafe to open in a spreadsheet) |