Downloader¶
Downloads files from URLs over HTTP/HTTPS to the local filesystem. Uses axios with streaming to efficiently write downloaded content directly to disk, and supports up to 10 redirects.
Usage¶
Aliases¶
This command is available under several aliases (all invoke the same CLI):
downloader(default)downloaddownload-filefile-downloaderfetch-file
Arguments¶
| Argument | Description |
|---|---|
url |
File URL to download (required) |
output-path |
Optional destination path on disk |
Options¶
| Flag | Description |
|---|---|
-h, --help |
Show help message |
Behavior¶
- If no
output-pathis provided, the filename is derived from the URL's pathname (e.g.,https://example.com/file.zipsaves asfile.zipin the current directory). - If the URL path ends with
/or has no filename segment, the default namedownloaded-fileis used. - The output path is resolved to an absolute path, and any missing parent directories are created automatically.
Examples¶
Download to the current directory (filename auto-derived from URL):
Download and save with a custom filename:
Using an alias: