You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-checksum string Verify with checksum (format: algorithm:hash)
55
+
```
56
+
57
+
### Examples
25
58
26
-
By default, `dl` will use the file's HTTP metadata when available for the filename. If not available it will fallback to using the filename from the URI path.
59
+
```bash
60
+
# Basic download
61
+
dl https://example.com/file.zip
27
62
28
-
To override this and set your own filename you can:
Create a `.dlrc` file in your home directory to set default values:
88
+
89
+
```bash
90
+
# ~/.dlrc
91
+
boost = 8
92
+
retries = 3
32
93
```
33
94
34
-
### Boost
95
+
##Advanced Features
35
96
36
-
The boost will set the concurrency level. In typical concurrency scenarios you want to set this to the number of CPU threads available... however, we recommend keeping this at the default value of `8`. A higher value doesn't always lead to faster downloads. At some concurrency level, your network throughput will saturate.
97
+
### Concurrent Downloads
37
98
99
+
The `-boost` parameter controls how many simultaneous connections are used. Higher values aren't always better - your network throughput will eventually saturate. The default of 8 works well for most scenarios.
100
+
101
+
### Auto-Resume Capability
102
+
103
+
Downloads now automatically resume by default! If a download is interrupted (network failure, Ctrl+C, system crash), simply run the same command again:
104
+
105
+
```bash
106
+
# Start a download
107
+
dl https://example.com/large-file.zip
108
+
# ... download interrupted at 45% ...
109
+
110
+
# Just run the same command to resume
111
+
dl https://example.com/large-file.zip
112
+
# Output: Resuming download using progress file (45.0% complete)
38
113
```
39
-
dl -boost 8 <file url>
114
+
115
+
Features:
116
+
-**Automatic detection** - Finds incomplete downloads and resumes automatically
117
+
-**Progress persistence** - Saves exact download state in `.filename.dl_progress` files
118
+
-**Multi-part awareness** - Resumes each parallel connection from exact byte position
119
+
-**Sparse file support** - Efficient disk usage on macOS/Linux filesystems
120
+
-**Smart validation** - Verifies same URL/filesize before resuming
121
+
-**Clean completion** - Removes progress files after successful download
122
+
123
+
Progress tracking details:
124
+
- Progress saved every 2 seconds during download
125
+
- Each download part tracked individually
126
+
- Survives crashes, network failures, and interruptions
127
+
- Works with multi-connection downloads (preserves boost setting)
128
+
129
+
To force a fresh download without resuming:
130
+
```bash
131
+
dl -no-resume https://example.com/file.zip
40
132
```
41
133
42
-
### Custom Working Directory
134
+
The tool shows clear status messages:
135
+
```
136
+
Resuming download using progress file (73.2% complete)
0 commit comments