For fine-tuning JSONL files, this command verifies UTF-8 encoding, that each non-empty line is parseable JSON, and that there is one JSON object per line, along with the minimum sample count and maximum file size. Schema-level validation (such as required fields and role ordering) is performed on the server when the file is used; the Files API surfaces any errors at that point.
$ tg files retrieve-content file-d931200a-6b7f-476b-9ae2-8fddd5112308 --output ./File saved to ./example.jsonl
You must pass either --output <DIRECTORY> to write the contents to disk under the file’s original filename, or --stdout to stream the contents to standard output.