...
Response content-type: text/csv
...
CSV output to a file append | tee -a output.csv
to request
NDJSON output to a file append | tee -a output.json
to request
if user requires output to be JSON, use | jq -s | tee -a output.json
ensure that ?dformat=
matches the output file extension
check what directory output is going to by using ls