Zum Hauptinhalt springen

DownloadFile

Downloads a file of the platform file system of the tenant to a local file.

Examples​

Download a file of the default root by path:

octo-cli -c DownloadFile -p "reports/2026/report.pdf" -f "./report.pdf"

Download a file by id, replacing a local file of the same name:

octo-cli -c DownloadFile `
-id "68e296bc1f73f259bbb10399" `
-f "./report.pdf" `
-o

Options​

ShortLongRequiredDescription
-r--rootnoWell-known name of the folder root (default 'Files'); used with -p.
-p--pathnoPath of the file below the root ('/'-separated). Alternative to -id.
-id--rtIdnoRuntime id of the file. Alternative to -p.
-f--filenoLocal target file. Default: the file name in the current directory.
-o--overwritenoOverwrite the local file if it exists.

Notes​

The content is streamed to the local file; it is only moved into place when the transfer is complete.