Back
CLI

Use Progressive Downloader from Terminal.app

Progressive Downloader can be controlled from the command line. This is useful for scripts, automation, and quick downloads without opening the interface manually.

Use the executable path stored in preferences:

"$(defaults read com.PS.PSD psAppPath)"
                

The application launches automatically if needed, then receives the command.

Command Format

Each command starts with the executable path, followed by an action and a list of argument name/value pairs:

"$(defaults read com.PS.PSD psAppPath)" [command] [argumentName] [argumentValue]...
                

Available commands:

Both -add and -download expect at least the pair url [UrlWithScheme].

Supported Arguments

Quote paths and values that may contain spaces.

Examples

Add a task to the queue:

"$(defaults read com.PS.PSD psAppPath)" -add url "https://example.com/archive.zip"
                

Add a task to the queue and wait until it finishes:

"$(defaults read com.PS.PSD psAppPath)" \
    -download \
    url "https://example.com/archive.zip" \
    useDefaults 1
                

Download to a specific folder and rename the file:

"$(defaults read com.PS.PSD psAppPath)" \
    -download \
    url "https://example.com/archive.zip" \
    destination "$HOME/Downloads/Packages" \
    filename "archive-latest.zip" \
    useDefaults 1
                

Download using cookies and a referer:

"$(defaults read com.PS.PSD psAppPath)" \
    -add \
    url "https://example.com/private/file.zip" \
    cookie "$HOME/cookies.txt" \
    referer "https://example.com/account/downloads"
                

Download from an authenticated SFTP server:

"$(defaults read com.PS.PSD psAppPath)" \
    -download \
    url "sftp://example.com/files/backup.zip" \
    username "john" \
    password "secret" \
    privatekey "$HOME/.ssh/id_rsa" \
    useDefaults 1
                

Show the review dialog:

"$(defaults read com.PS.PSD psAppPath)" -review
                

Print the built-in help:

"$(defaults read com.PS.PSD psAppPath)" -help
                
Download Mode Output

The -download command prints progress in Terminal and exits only after the task completes or fails. On success it prints the resulting path as:

Downloaded: /path/to/file
                

To cancel an active -download command, press Ctrl+C. The app receives the cancel request and Terminal prints:

Download canceled