Skip to content

CLI

trio file

Upload, list, inspect, download, and delete workspace files (such as JSONL input files for batch inference).

bash
trio file upload requests.jsonl
trio file list --limit 20
trio file list --all
trio file info FILE_ID
trio file download FILE_ID -o ./downloads/requests.jsonl
trio file delete FILE_ID --yes

Subcommands ​

upload ​

bash
trio file upload <PATH>

Upload a local file. The file_id returned after upload can be used with trio batch create.


list ​

bash
trio file list [--limit <N>] [--all]

List files in the current workspace. Supports the global --format json / --format csv option.

OptionDefaultDescription
--limit <N>20Maximum items per page (defaults to 20)
--all—Automatically retrieve every page

info ​

bash
trio file info <FILE_ID>

Inspect metadata for the specified file. Supports the global --format json / --format csv option.


download ​

bash
trio file download <FILE_ID> [-o <PATH>]

Download the specified file. Appends an incrementing number on name collisions and prints the actual saved path. Uses text output only.

Argument / OptionDescription
<FILE_ID>File ID to download
-o <PATH>Destination path

delete ​

bash
trio file delete <FILE_ID> [--yes]

Delete the specified file. A file still used by a job cannot be deleted. Uses text output only.

Argument / OptionDescription
<FILE_ID>File ID to delete
--yesSkip interactive confirmation for non-interactive calls