# Aria2 Lightweight multi-protocol command-line download utility. Supports HTTP(S), FTP, SFTP, BitTorrent, and Metalink. Can download from multiple sources simultaneously and split files into segments for faster speeds. ## Installation ```bash brew install aria2 ``` ## Common Usage ```bash # Basic download aria2c https://example.com/file.zip # Multiple parallel connections (16 segments) aria2c -x 16 https://example.com/large-file.iso # Resume interrupted download aria2c -c https://example.com/large-file.iso # Download from a torrent file aria2c file.torrent # Download from a magnet link aria2c 'magnet:?xt=urn:btih:...' # Download multiple URLs from a file aria2c -i urls.txt # Limit download speed aria2c --max-download-limit=1M https://example.com/file.zip ``` ## Daemon Mode (JSON-RPC) Run aria2 as a background download daemon, controllable via JSON-RPC: ```bash # Start daemon aria2c --enable-rpc --rpc-listen-all=true --daemon=true # Add a download via RPC curl -d '{"jsonrpc":"2.0","method":"aria2.addUri","id":"1","params":[["https://example.com/file.zip"]]}' http://localhost:6800/jsonrpc ``` ## Links - [GitHub](https://github.com/aria2/aria2) - [Online Manual](https://aria2.github.io/manual/en/html/)