maton one-drive item upload

maton one-drive item upload <local-file> [flags]

Upload a local file to OneDrive via a single PUT to /root:/path:/content. The destination path is given by –path and must include the target filename. Files larger than 4 MiB require an upload session — use ‘maton api’ for that.

Options

--conflict <string>
Conflict behavior: fail, replace, rename
--connection <string>
Connection ID to route through (Maton-Connection header)
--dry-run
Print the request that would be sent without executing it
--format <string>
Output format: 'json' (default) or 'text' on supported commands
-q, --jq <expression>
Filter JSON output using a jq expression
--mime-type <string>
Override the detected Content-Type
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--path <string>
Destination path including filename (required, e.g. Documents/report.pdf)
--template <string>
Format JSON output using a Go template; see "maton help formatting"

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton one-drive item upload ./report.pdf --path Documents/report.pdf
$ maton one-drive item upload ./data.csv --path Reports/2026/data.csv --conflict replace

See also