pause command pauses one or more downloads by ID.
Usage
Description
Pauses an active or queued download, preserving its state for later resumption. The command:- Stops data transfer immediately
- Saves download progress to a
.surgestate file - Updates database with paused status
- Supports partial ID matching for convenience
- Can pause all downloads with
--allflag
Paused downloads retain their position in the queue and can be resumed with the
surge resume command.Arguments
Download ID (full or partial) to pause. You can use just the first few characters.Example:
Flags
Pause all active and queued downloads.Example:
Examples
Pause Single Download
Using full ID:Pause All Downloads
The
--all flag currently shows “not yet implemented” when targeting a running server. Use the TUI to pause all downloads.Behavior
State Preservation
When a download is paused:- Active network connections are closed
- Download progress is written to a
.surgefile - Database status is updated to “paused”
- Worker slot is freed for other downloads
Partial ID Resolution
Surge automatically resolves partial IDs:Use Cases
Temporarily Stop Download
Pause a large download to free bandwidth:Queue Management
Pause lower-priority downloads:Bandwidth Control
Pause all downloads before a video call:Remote Servers
Pause downloads on a remote server:Error Handling
Download Not Found
No Server Running
Already Paused
Pausing an already paused download is safe and has no effect:State File
When paused, download state is saved to:- Download URL and mirrors
- Total size and downloaded bytes
- Chunk information for resume
- Timestamp and metadata
Related Commands
- surge resume - Resume paused downloads
- surge ls - Check download status
- surge rm - Remove downloads completely