CMDCommand · run as root on the server · file family
urbestack-file-download
First published 14 Oct 2026
0.2.0Unchanged since publicationUsage
3 forms# urbestack-file-download --user NAME --path /file [--offset BYTES]# urbestack-file-download --user NAME --path /directory# urbestack-file-download --user NAME --path /a --path /b ...Description
From the command's --help outputStreams a download from a customer's home directory to standard output using the customer's account. Paths start at /, the customer's home directory. A single file can be streamed at any size. Use --offset to start at a byte offset of 0 or more. The default is 0. A positive offset at or beyond the end of the file returns status 416. A symbolic link to a file is followed only if its target is inside the home. A directory or multiple entries from the same directory are sent as a ZIP archive. The command generates the archive as it streams and sends it in full, regardless of --offset. It streams the payload without staging a complete copy in memory or on disk. Streamed ZIP archives omit symbolic links and entries with a newline in their names. They include only regular files and directories, and may omit unreadable files. A ZIP download of / also omits /.trash. Storing symbolic links requires a ZIP file that can be written to directly. urbestack-file-compress creates that file in the home directory and preserves symbolic links. The first line on standard output is JSON with the download name and type, either "file" or "zip". For a file, it also gives the total size, starting offset, number of bytes to follow, and modification time. The raw download bytes follow that line. If the command fails before sending the header, it writes a JSON error in its place. If it fails after sending the header, the stream ends without an error message on standard output. Either failure produces a nonzero exit status. The server allows two downloads at a time and one per customer account. A download that would exceed either limit returns status 429.Usage: urbestack-file-download --user NAME --path /file [--offset BYTES] urbestack-file-download --user NAME --path /directory urbestack-file-download --user NAME --path /a --path /b ... Streams a download from a customer's home directory to standard output using the customer's account. Paths start at /, the customer's home directory. A single file can be streamed at any size. Use --offset to start at a byte offset of 0 or more. The default is 0. A positive offset at or beyond the end of the file returns status 416. A symbolic link to a file is followed only if its target is inside the home. A directory or multiple entries from the same directory are sent as a ZIP archive. The command generates the archive as it streams and sends it in full, regardless of --offset. It streams the payload without staging a complete copy in memory or on disk. Streamed ZIP archives omit symbolic links and entries with a newline in their names. They include only regular files and directories, and may omit unreadable files. A ZIP download of / also omits /.trash. Storing symbolic links requires a ZIP file that can be written to directly. urbestack-file-compress creates that file in the home directory and preserves symbolic links. The first line on standard output is JSON with the download name and type, either "file" or "zip". For a file, it also gives the total size, starting offset, number of bytes to follow, and modification time. The raw download bytes follow that line. If the command fails before sending the header, it writes a JSON error in its place. If it fails after sending the header, the stream ends without an error message on standard output. Either failure produces a nonzero exit status. The server allows two downloads at a time and one per customer account. A download that would exceed either limit returns status 429.
Options
Find other commands that accept these optionsGenerated from release 0.2.35 (current) · urbestack-file-download --help outputThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/commands/urbestack-file-download/