UploadFile
Uploads a local file into the platform file system of the tenant.
Examples
Upload into the root of the default file root:
octo-cli -c UploadFile -f "./report.pdf"
Upload into a folder path, creating missing folders and replacing an existing file:
octo-cli -c UploadFile `
-f "./report.pdf" `
-r "Files" `
-p "reports/2026/report.pdf" `
-cf `
-c "replace"
Options
| Short | Long | Required | Description |
|---|---|---|---|
-f | --file | yes | Local file to upload |
-r | --root | no | Well-known name of the target folder root (default 'Files'). |
-p | --path | no | Target path below the root, ending with the file name ('/'-separated). Default: the name of the local file in the root. |
-c | --conflict | no | What to do when the name exists: 'fail' (default), 'replace' or 'keepBoth'. |
-cf | --create-folders | no | Create missing folders on the way. |
-ct | --content-type | no | Content type; default: derived by the server from the file name. |
Notes
conflict=replace stores new content for the existing file; its id and links to other entities stay. keepBoth stores under the next free name ('a (1).pdf').
The maximum file size is set by the server (default 100 MB per file).