resume command resumes one or more paused downloads by ID.
Usage
Description
Resumes a paused download from where it left off. The command:- Restores download state from
.surgefile - Continues from the last downloaded byte
- Supports partial ID matching for convenience
- Can resume all paused downloads with
--allflag - Validates file integrity before resuming
Surge uses HTTP range requests to resume downloads efficiently without re-downloading completed chunks.
Arguments
Download ID (full or partial) to resume. You can use just the first few characters.Example:
Flags
Resume all paused downloads.Example:
Examples
Resume Single Download
Using full ID:Resume All Downloads
The
--all flag currently shows “not yet implemented” when targeting a running server. Use the TUI to resume all downloads.Behavior
Resume Process
When a download is resumed:- State file (
.surge) is validated - Server is queried for file size and range support
- Download continues from last byte position
- If server doesn’t support ranges, download restarts
- Status updates to “active” or “queued”
Partial ID Resolution
Surge automatically resolves partial IDs:Auto-Resume on Startup
By default, Surge automatically resumes paused downloads when started:Use Cases
Resume After Pause
Resume Failed Downloads
Resume downloads that errored due to network issues:Resume All After Restart
If you started with--no-resume, manually resume:
Selective Resume
Resume only large files:Remote Servers
Resume downloads on a remote server:Error Handling
Download Not Found
Missing State File
If the.surge file is missing:
No Server Running
Already Active
Resuming an active download has no effect:Server Doesn’t Support Resume
Some servers don’t support HTTP range requests. Surge will:- Attempt to resume with Range header
- If server returns 200 (instead of 206), restart from beginning
- Remove incomplete file and start fresh
Integrity Validation
Before resuming, Surge validates:- State file exists and is readable
- Downloaded file exists at expected path
- File size matches expected progress
- Chunk boundaries are valid
State File Location
Resume state is stored in:Related Commands
- surge pause - Pause active downloads
- surge ls - Check download status
- surge refresh - Update download URL
- surge rm - Remove downloads