Skip to content

compozy session attachments upload

Upload a file to a session

574 pages in CLI Reference

On this page5

Usage

compozy session attachments upload <session-id> <file> [flags]

Examples1

  1. compozy session attachments upload sess_1234 ./image.png

Options1

--help-h
help for upload

Inherited options3

--json
Emit JSON output
--output-ostring
Output format: human, json, jsonl, or toon (default "human")
--profilestring
Act as a profile for this command

Output Formats

The root -o, --output flag accepts these values. A renderer is supported only when this command writes that result; jsonl is for commands that emit one JSON record per line.

FormatCommand result
humanInteractive terminal rendering
jsonMachine-readable JSON rendering
jsonlOne JSON record per line when supported
toonCompact agent-readable rendering

Example:

compozy session attachments upload <session-id> <file> -o json