CH·02CLI reference
deeprelay files content
Download a file's content
Download a file's content
Synopsis
Downloads a file's content: an input file you uploaded, or a batch's output or error file. To fetch a batch's results by batch id instead of file id, use deeprelay batches results / deeprelay batches errors.
The content goes to stdout, or to a file with --out . The file is written with owner-only permissions (0600), and is only created once the server has answered, so a refused download (unknown id, expired file) leaves nothing behind; a transfer that breaks partway removes the partial file. A file past its retention period is reported as expired.
Examples
deeprelay files content file-abc123 --out output.jsonl
deeprelay files content file-abc123 | head -3
deeprelay files content <file-id> [flags]
Options
-h, --help help for content
--out string Write the content to this file (mode 0600) instead of stdout
Options inherited from parent commands
--api-base string API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
--debug Enable debug logging to stderr
--no-preflight Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
-o, --output string Output format: table|json (default table on TTY, json otherwise) (default "table")
SEE ALSO
- deeprelay files - Upload and manage batch input and result files