aria2c.1.txt 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. :man source: Aria2
  5. :man manual: Aria2 Manual
  6. NAME
  7. ----
  8. aria2c - The ultra fast download utility
  9. SYNOPSIS
  10. --------
  11. aria2c ['OPTIONS'] ['URI' | 'MAGNET' | 'TORRENT_FILE' | 'METALINK_FILE']...
  12. DESCRIPTION
  13. -----------
  14. aria2 is a utility for downloading files. The supported protocols are
  15. HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from
  16. multiple sources/protocols and tries to utilize your maximum download
  17. bandwidth. It supports downloading a file from HTTP(S)/FTP and
  18. BitTorrent at the same time, while the data downloaded from
  19. HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's
  20. chunk checksums, aria2 automatically validates chunks of data while
  21. downloading a file like BitTorrent.
  22. OPTIONS
  23. -------
  24. Basic Options
  25. ~~~~~~~~~~~~~
  26. *-d*, *--dir*=DIR::
  27. The directory to store the downloaded file.
  28. *-i*, *--input-file*=FILE::
  29. Downloads URIs found in FILE. You can specify multiple URIs for a single
  30. entity: separate URIs on a single line using the TAB character.
  31. Reads input from stdin when '-' is specified.
  32. The additional *out* and *dir* options can be specified after each line of
  33. URIs. This optional line must start with white space(s).
  34. See *Input File* subsection for details.
  35. *-l*, *--log*=LOG::
  36. The file name of the log file. If '-' is specified, log is written to
  37. stdout.
  38. *-j*, *--max-concurrent-downloads*=N::
  39. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  40. torrent and metalink. See also *-s* and *-C* option.
  41. Default: '5'
  42. *-V*, *--check-integrity*[='true'|'false']::
  43. Check file integrity by validating piece hashes.
  44. This option has effect only in BitTorrent and Metalink downloads with
  45. chunk checksums.
  46. Use this option to re-download a damaged portion of a file.
  47. Default: 'false'
  48. *-c*, *--continue*::
  49. Continue downloading a partially downloaded file.
  50. Use this option to resume a download started by a web browser or another
  51. program which downloads files sequentially from the beginning.
  52. Currently this option is only applicable to HTTP(S)/FTP downloads.
  53. *-h*, *--help*[=TAG|KEYWORD]::
  54. The help messages are classified with tags. A tag starts with
  55. "#". For example, type "--help=#http" to get the usage for the
  56. options tagged with "#http". If non-tag word is given, print the
  57. usage for the options whose name includes that word.
  58. Available Values: '#basic', '#advanced', '#http', '#https', '#ftp',
  59. '#metalink', '#bittorrent', '#cookie', '#hook', '#file',
  60. '#xml-rpc', '#experimental', '#all'
  61. Default: '#basic'
  62. HTTP/FTP Options
  63. ~~~~~~~~~~~~~~~~
  64. *--all-proxy*=PROXY::
  65. Use this proxy server for all protocols. To erase previously
  66. defined proxy, use "". You can override this setting and specify a
  67. proxy server for a particular protocol using *--http-proxy*,
  68. *--https-proxy* and *--ftp-proxy* options. This affects all URLs.
  69. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  70. *--connect-timeout*=SEC::
  71. Set the connect timeout in seconds to establish connection to
  72. HTTP/FTP/proxy server. After the connection is established, this
  73. option makes no effect and *--timeout* option is used instead.
  74. Default: '60'
  75. *--dry-run*[='true'|'false']::
  76. If 'true' is given, aria2 just checks whether the remote file is
  77. available and doesn't download data. This option has effect on
  78. HTTP/FTP download. BitTorrent downloads are canceled if 'true' is
  79. specified. Default: 'false'
  80. *--lowest-speed-limit*=SPEED::
  81. Close connection if download speed is lower than or equal to this
  82. value(bytes per sec).
  83. '0' means aria2 does not have a lowest speed limit.
  84. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  85. This option does not affect BitTorrent downloads.
  86. Default: '0'
  87. *--max-file-not-found*=NUM::
  88. If aria2 receives `file not found' status from the remote HTTP/FTP
  89. servers NUM times without getting a single byte, then force the
  90. download to fail. Specify '0' to disable this option. This options is
  91. effective only when using HTTP/FTP servers.
  92. Default: '0'
  93. *-m*, *--max-tries*=N::
  94. Set number of tries. '0' means unlimited.
  95. Default: '5'
  96. *-n*, *--no-netrc*::
  97. Disables netrc support. netrc support is enabled by default.
  98. *--no-proxy*=DOMAINS::
  99. Specify comma separated hostnames or domains where proxy should not be
  100. used.
  101. *-o*, *--out*=FILE::
  102. The file name of the downloaded file. When *-Z* option is used, this
  103. option is ignored.
  104. [NOTE]
  105. In Metalink or BitTorrent download you cannot specify file name.
  106. The file name specified here is only used when the URLs fed to aria2
  107. are done by command line without *-i*, *-Z* option. For example:
  108. aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"
  109. *--proxy-method*=METHOD::
  110. Set the method to use in proxy request. 'METHOD' is either 'get' or
  111. 'tunnel'. HTTPS downloads always use 'tunnel' regardless of this
  112. option.
  113. Default: 'get'
  114. *-R*, *--remote-time*[='true'|'false']::
  115. Retrieve timestamp of the remote file from the remote HTTP/FTP
  116. server and if it is available, apply it to the local file.
  117. Default: 'false'
  118. *--server-stat-of*=FILE::
  119. Specify the filename to which performance profile of the servers is
  120. saved. You can load saved data using *--server-stat-if* option. See
  121. *Server Performance Profile* subsection below for file format.
  122. *--server-stat-if*=FILE::
  123. Specify the filename to load performance profile of the servers. The
  124. loaded data will be used in some URI selector such as 'feedback'.
  125. See also *--uri-selector* option. See *Server Performance Profile*
  126. subsection below for file format.
  127. *--server-stat-timeout*=SEC::
  128. Specifies timeout in seconds to invalidate performance profile of
  129. the servers since the last contact to them.
  130. Default: '86400' (24hours)
  131. *-s*, *--split*=N::
  132. Download a file using N connections.
  133. If more than N URLs are given, first N URLs are used and remaining URLs are
  134. used for backup.
  135. If less than N URLs are given, those URLs are used more than once so that N
  136. connections total are made simultaneously.
  137. Please see *-j* option too.
  138. Please note that in Metalink download, this option has no effect and use
  139. *-C* option instead.
  140. Default: '5'
  141. *-t*, *--timeout*=SEC::
  142. Set timeout in seconds.
  143. Default: '60'
  144. *--uri-selector*=SELECTOR::
  145. Specify URI selection algorithm. The possible values are 'inorder',
  146. 'feedback' and 'adaptive'. If 'inorder' is given, URI is tried in
  147. the order appeared in the URI list. If 'feedback' is given, aria2
  148. uses download speed observed in the previous downloads and choose
  149. fastest server in the URI list. This also effectively skips dead
  150. mirrors. The observed download speed is a part of performance
  151. profile of servers mentioned in *--server-stat-of* and
  152. *--server-stat-if* options. If 'adaptive' is given, selects one of
  153. the best mirrors for the first and reserved connections. For
  154. supplementary ones, it returns mirrors which has not been tested
  155. yet, and if each of them has already been tested, returns mirrors
  156. which has to be tested again. Otherwise, it doesn't select anymore
  157. mirrors. Like 'feedback', it uses a performance profile of servers.
  158. Default: 'feedback'
  159. HTTP Specific Options
  160. ~~~~~~~~~~~~~~~~~~~~~
  161. *--ca-certificate*=FILE::
  162. Use the certificate authorities in FILE to verify the peers.
  163. The certificate file must be in PEM format and can contain multiple CA
  164. certificates.
  165. Use *--check-certificate* option to enable verification.
  166. *--certificate*=FILE::
  167. Use the client certificate in FILE.
  168. The certificate must be in PEM format.
  169. You may use *--private-key* option to specify the private key.
  170. *--check-certificate*[='true'|'false']::
  171. Verify the peer using certificates specified in *--ca-certificate* option.
  172. Default: 'true'
  173. *--http-auth-challenge*[='true'|'false']::
  174. Send HTTP authorization header only when it is requested by the
  175. server. If 'false' is set, then authorization header is always sent
  176. to the server. There is an exception: if username and password are
  177. embedded in URI, authorization header is always sent to the server
  178. regardless of this option. Default: 'false'
  179. *--http-no-cache*[='true'|'false']::
  180. Send Cache-Control: no-cache and Pragma: no-cache header to avoid
  181. cached content. If 'false' is given, these headers are not sent
  182. and you can add Cache-Control header with a directive you like
  183. using *--header* option. Default: 'true'
  184. *--http-user*=USER::
  185. Set HTTP user. This affects all URLs.
  186. *--http-passwd*=PASSWD::
  187. Set HTTP password. This affects all URLs.
  188. *--http-proxy*=PROXY::
  189. Use this proxy server for HTTP. To erase previously defined proxy,
  190. use "". See also *--all-proxy* option. This affects all URLs. The
  191. format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  192. *--https-proxy*=PROXY::
  193. Use this proxy server for HTTPS. To erase previously defined proxy,
  194. use "". See also *--all-proxy* option. This affects all URLs. The
  195. format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  196. *--private-key*=FILE::
  197. Use the private key in FILE.
  198. The private key must be decrypted and in PEM format.
  199. The behavior when encrypted one is given is undefined.
  200. See also *--certificate* option.
  201. *--referer*=REFERER::
  202. Set Referer. This affects all URLs.
  203. *--enable-http-keep-alive*[='true'|'false']::
  204. Enable HTTP/1.1 persistent connection.
  205. Default: 'true'
  206. *--enable-http-pipelining*[='true'|'false']::
  207. Enable HTTP/1.1 pipelining.
  208. Default: 'false'
  209. *--header*=HEADER::
  210. Append HEADER to HTTP request header.
  211. You can use this option repeatedly to specify more than one header:
  212. aria2c *--header*="X-A: b78" *--header*="X-B: 9J1" "http://host/file"
  213. *--load-cookies*=FILE::
  214. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  215. Mozilla/Firefox(1.x/2.x)/Netscape format.
  216. [NOTE]
  217. If aria2 is built without libsqlite3, then it doesn't support Firefox3 cookie format.
  218. *--save-cookies*=FILE::
  219. Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/ Netscape
  220. format. If FILE already exists, it is overwritten. Session Cookies
  221. are also saved and their expiry values are treated as 0. Possible
  222. Values: '/path/to/file'
  223. *--use-head*[='true'|'false']::
  224. Use HEAD method for the first request to the HTTP server.
  225. Default: 'false'
  226. *-U*, *--user-agent*=USER_AGENT::
  227. Set user agent for HTTP(S) downloads.
  228. Default: 'aria2/$VERSION', $VERSION is replaced by package version.
  229. FTP Specific Options
  230. ~~~~~~~~~~~~~~~~~~~~
  231. *--ftp-user*=USER::
  232. Set FTP user. This affects all URLs.
  233. Default: 'anonymous'
  234. *--ftp-passwd*=PASSWD::
  235. Set FTP password. This affects all URLs.
  236. If user name is embedded but password is missing in URI, aria2 tries
  237. to resolve password using .netrc. If password is found in .netrc,
  238. then use it as password. If not, use the password specified in this
  239. option.
  240. Default: 'ARIA2USER@'
  241. *-p*, *--ftp-pasv*[='true'|'false']::
  242. Use the passive mode in FTP.
  243. If 'false' is given, the active mode will be used.
  244. Default: 'true'
  245. *--ftp-proxy*=PROXY::
  246. Use this proxy server for FTP. To erase previously defined proxy,
  247. use "". See also *--all-proxy* option. This affects all URLs. The
  248. format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  249. *--ftp-type*=TYPE::
  250. Set FTP transfer type. TYPE is either 'binary' or 'ascii'.
  251. Default: 'binary'
  252. *--ftp-reuse-connection*[='true'|'false']::
  253. Reuse connection in FTP.
  254. Default: 'true'
  255. BitTorrent/Metalink Options
  256. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  257. *--select-file*=INDEX...::
  258. Set file to download by specifying its index.
  259. You can find the file index using the *--show-files* option.
  260. Multiple indexes can be specified by using ",", for example: '3,6'.
  261. You can also use "-" to specify a range: '1-5'.
  262. "," and "-" can be used together: '1-5,8,9'.
  263. When used with the -M option, index may vary depending on the query
  264. (see *--metalink-** options).
  265. [NOTE]
  266. In multi file torrent, the adjacent files specified by this option may
  267. also be downloaded. This is by design, not a bug.
  268. A single piece may include several files or part of files, and aria2
  269. writes the piece to the appropriate files.
  270. *-S*, *--show-files*::
  271. Print file listing of .torrent or .metalink file and exit.
  272. In case of .torrent file, additional information
  273. (infohash, piece length, etc) is also printed.
  274. BitTorrent Specific Options
  275. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  276. *--bt-external-ip*=IPADDRESS::
  277. Specify the external IP address to report to a BitTorrent
  278. tracker. Although this function is named "external", it can accept
  279. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  280. *--bt-hash-check-seed*[='true'|'false']::
  281. If 'true' is given, after hash check using *--check-integrity* option and
  282. file is complete, continue to seed file. If you want to check file
  283. and download it only when it is damaged or incomplete, set this
  284. option to 'false'. This option has effect only on BitTorrent download.
  285. Default: 'true'
  286. *--bt-max-open-files*=NUM::
  287. Specify maximum number of files to open in each BitTorrent download.
  288. Default: '100'
  289. *--bt-max-peers*=NUM::
  290. Specify the maximum number of peers per torrent. '0' means
  291. unlimited. See also *--bt-request-peer-speed-limit* option.
  292. Default: '55'
  293. *--bt-metadata-only*[='true'|'false']::
  294. Download metadata only. The file(s) described in metadata will not
  295. be downloaded. This option has effect only when BitTorrent Magnet
  296. URI is used. See also *--bt-save-metadata* option. Default: 'false'
  297. *--bt-min-crypto-level*='plain'|'arc4'::
  298. Set minimum level of encryption method.
  299. If several encryption methods are provided by a peer, aria2 chooses the lowest
  300. one which satisfies the given level.
  301. Default: 'plain'
  302. *--bt-prioritize-piece*='head'[=SIZE],'tail'[=SIZE]::
  303. Try to download first and last pieces of each file first. This is
  304. useful for previewing files. The argument can contain 2 keywords:
  305. 'head' and 'tail'. To include both keywords, they must be separated
  306. by comma. These keywords can take one parameter, SIZE. For example,
  307. if 'head'=SIZE is specified, pieces in the range of first SIZE bytes
  308. of each file get higher priority. 'tail'=SIZE means the range of
  309. last SIZE bytes of each file. SIZE can include 'K' or 'M'(1K = 1024,
  310. 1M = 1024K). If SIZE is omitted, SIZE=1M is used.
  311. *--bt-require-crypto*='true'|'false'::
  312. If true is given, aria2 doesn't accept and establish connection with legacy
  313. BitTorrent handshake(\19BitTorrent protocol).
  314. Thus aria2 always uses Obfuscation handshake.
  315. Default: 'false'
  316. *--bt-request-peer-speed-limit*=SPEED::
  317. If the whole download speed of every torrent is lower than SPEED,
  318. aria2 temporarily increases the number of peers to try for more
  319. download speed. Configuring this option with your preferred download
  320. speed can increase your download speed in some cases.
  321. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  322. Default: '50K'
  323. *--bt-save-metadata*[='true'|'false']::
  324. Save metadata as .torrent file. This option has effect only when
  325. BitTorrent Magnet URI is used. The filename is hex encoded info
  326. hash with suffix .torrent. The directory to be saved is the same
  327. directory where download file is saved. If the same file already
  328. exists, metadata is not saved. See also *--bt-metadata-only*
  329. option. Default: 'false'
  330. *--bt-seed-unverified*[='true'|'false']::
  331. Seed previously downloaded files without verifying piece hashes.
  332. Default: 'false'
  333. *--bt-stop-timeout*=SEC::
  334. Stop BitTorrent download if download speed is 0 in consecutive SEC
  335. seconds. If '0' is given, this feature is disabled. Default: '0'
  336. *--bt-tracker-interval*=SEC::
  337. Set the interval in seconds between tracker requests. This
  338. completely overrides interval value and aria2 just uses this value
  339. and ignores the min interval and interval value in the response of
  340. tracker. If '0' is set, aria2 determines interval based on the
  341. response of tracker and the download progress. Default: '0'
  342. *--dht-entry-point*=HOST:PORT::
  343. Set host and port as an entry point to DHT network.
  344. *--dht-file-path*=PATH::
  345. Change the DHT routing table file to PATH.
  346. Default: '$HOME/.aria2/dht.dat'
  347. *--dht-listen-port*=PORT...::
  348. Set UDP listening port for DHT.
  349. Multiple ports can be specified by using ",", for example: '6881,6885'.
  350. You can also use "-" to specify a range: '6881-6999'. "," and "-" can be used
  351. together.
  352. Default: '6881-6999'
  353. [NOTE]
  354. Make sure that the specified ports are open for incoming UDP traffic.
  355. *--enable-dht*[='true'|'false']::
  356. Enable DHT functionality. If a private flag is set in a torrent, aria2
  357. doesn't use DHT for that download even if 'true' is given.
  358. Default: 'true'
  359. *--enable-peer-exchange*[='true'|'false']::
  360. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  361. feature is disabled for that download even if 'true' is given.
  362. Default: 'true'
  363. *--follow-torrent*='true'|'false'|'mem'::
  364. If 'true' or 'mem' is specified, when a file whose suffix is ".torrent" or content
  365. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  366. file and downloads files mentioned in it.
  367. If 'mem' is specified, a torrent file is not written to the disk, but is just
  368. kept in memory.
  369. If 'false' is specified, the action mentioned above is not taken.
  370. Default: 'true'
  371. *-O*, *--index-out*=INDEX=PATH::
  372. Set file path for file with index=INDEX. You can find the file index
  373. using the *--show-files* option. PATH is a relative path to the
  374. path specified in *--dir* option. You can use this option multiple
  375. times. Using this option, you can specify the output filenames of
  376. BitTorrent downloads.
  377. *--listen-port*=PORT...::
  378. Set TCP port number for BitTorrent downloads.
  379. Multiple ports can be specified by using ",", for example: '6881,6885'.
  380. You can also use "-" to specify a range: '6881-6999'.
  381. "," and "-" can be used together: '6881-6889,6999'.
  382. Default: '6881-6999'
  383. [NOTE]
  384. Make sure that the specified ports are open for incoming TCP traffic.
  385. *--max-overall-upload-limit*=SPEED::
  386. Set max overall upload speed in bytes/sec.
  387. '0' means unrestricted.
  388. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  389. To limit the upload speed per torrent, use *--max-upload-limit* option.
  390. Default: '0'
  391. *-u*, *--max-upload-limit*=SPEED::
  392. Set max upload speed per each torrent in bytes/sec.
  393. '0' means unrestricted.
  394. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  395. To limit the overall upload speed, use *--max-overall-upload-limit* option.
  396. Default: '0'
  397. *--peer-id-prefix*=PEER_ID_PREFIX::
  398. Specify the prefix of peer ID. The peer ID in
  399. BitTorrent is 20 byte length. If more than 20
  400. bytes are specified, only first 20 bytes are
  401. used. If less than 20 bytes are specified, random
  402. byte data are added to make its length 20 bytes.
  403. Default: 'aria2/$VERSION-', $VERSION is replaced by package version.
  404. *--seed-ratio*=RATIO::
  405. Specify share ratio. Seed completed torrents until share ratio reaches
  406. RATIO.
  407. You are strongly encouraged to specify equals or more than '1.0' here.
  408. Specify '0.0' if you intend to do seeding regardless of share ratio.
  409. If *--seed-time* option is specified along with this option, seeding ends when
  410. at least one of the conditions is satisfied.
  411. Default: '1.0'
  412. *--seed-time*=MINUTES::
  413. Specify seeding time in minutes. Also see the *--seed-ratio* option.
  414. *-T*, *--torrent-file*=TORRENT_FILE::
  415. The path to the .torrent file. You are not required to use this
  416. option because you can specify .torrent files without *-T*.
  417. Metalink Specific Options
  418. ~~~~~~~~~~~~~~~~~~~~~~~~~
  419. *--follow-metalink*='true'|'false'|'mem'::
  420. If 'true' or 'mem' is specified, when a file whose suffix is ".metalink" or content
  421. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  422. file and downloads files mentioned in it.
  423. If 'mem' is specified, a metalink file is not written to the disk, but is just
  424. kept in memory.
  425. If 'false' is specified, the action mentioned above is not taken.
  426. Default: 'true'
  427. *-M*, *--metalink-file*=METALINK_FILE::
  428. The file path to .metalink file. Reads input from stdin when '-' is
  429. specified. You are not required to use this option because you can
  430. specify .metalink files without *-M*.
  431. *-C*, *--metalink-servers*=NUM_SERVERS::
  432. The number of servers to connect to simultaneously.
  433. Some Metalinks regulate the number of servers to connect.
  434. aria2 strictly respects them.
  435. This means that if Metalink defines the maxconnections attribute lower
  436. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  437. instead of NUM_SERVERS.
  438. See also *-s* and *-j* options.
  439. Default: '5'
  440. *--metalink-language*=LANGUAGE::
  441. The language of the file to download.
  442. *--metalink-location*=LOCATION[,...]::
  443. The location of the preferred server.
  444. A comma-delimited list of locations is acceptable, for example, 'JP,US'.
  445. *--metalink-os*=OS::
  446. The operating system of the file to download.
  447. *--metalink-version*=VERSION::
  448. The version of the file to download.
  449. *--metalink-preferred-protocol*=PROTO::
  450. Specify preferred protocol.
  451. The possible values are 'http', 'https', 'ftp' and 'none'.
  452. Specify 'none' to disable this feature.
  453. Default: 'none'
  454. *--metalink-enable-unique-protocol*='true'|'false'::
  455. If 'true' is given and several protocols are available for a mirror in a
  456. metalink file, aria2 uses one of them.
  457. Use *--metalink-preferred-protocol* option to specify the preference of
  458. protocol.
  459. Default: 'true'
  460. XML-RPC Options
  461. ~~~~~~~~~~~~~~~
  462. *--enable-xml-rpc*[='true'|'false']::
  463. Enable XML-RPC server. It is strongly recommended to set username
  464. and password using *--xml-rpc-user* and *--xml-rpc-passwd*
  465. option. See also *--xml-rpc-listen-port* option. Default: 'false'
  466. *--xml-rpc-listen-all*[='true'|'false']::
  467. Listen incoming XML-RPC requests on all network interfaces. If false
  468. is given, listen only on local loopback interface. Default: 'false'
  469. *--xml-rpc-listen-port*=PORT::
  470. Specify a port number for XML-RPC server to listen to. Possible
  471. Values: '1024'-'65535' Default: '6800'
  472. *--xml-rpc-max-request-size*=SIZE::
  473. Set max size of XML-RPC request. If aria2 detects the request is
  474. more than SIZE bytes, it drops connection. Default: '2M'
  475. *--xml-rpc-passwd*=PASSWD::
  476. Set XML-RPC password.
  477. *--xml-rpc-user*=USER::
  478. Set XML-RPC user.
  479. Advanced Options
  480. ~~~~~~~~~~~~~~~~
  481. *--allow-overwrite*='true'|'false'::
  482. If 'false' is given, and a file already exists but the corresponding
  483. control file (filename.aria2) doesn't exist, then aria2 will not
  484. re-download the file. See also *--auto-file-renaming* option.
  485. Default: 'false'
  486. *--allow-piece-length-change*='true'|'false'::
  487. If false is given, aria2 aborts download when a piece length is different
  488. from one in a control file.
  489. If true is given, you can proceed but some download progress will be lost.
  490. Default: 'false'
  491. *--async-dns*[='true'|'false']::
  492. Enable asynchronous DNS.
  493. Default: 'true'
  494. *--auto-file-renaming*[='true'|'false']::
  495. Rename file name if the same file already exists.
  496. This option works only in HTTP(S)/FTP download.
  497. The new file name has a dot and a number(1..9999) appended.
  498. Default: 'true'
  499. *--auto-save-interval*=SEC::
  500. Save a control file(*.aria2) every SEC seconds.
  501. If '0' is given, a control file is not saved during download. aria2 saves a
  502. control file when it stops regardless of the value.
  503. The possible values are between '0' to '600'.
  504. Default: '60'
  505. *--conf-path*=PATH::
  506. Change the configuration file path to PATH.
  507. Default: '$HOME/.aria2/aria2.conf'
  508. *-D*, *--daemon*::
  509. Run as daemon. The current working directory will be changed to '/'
  510. and standard input, standard output and standard error will be
  511. redirected to '/dev/null'. Default: 'false'
  512. *--disable-ipv6*[='true'|'false']::
  513. Disable IPv6. This is useful if you have to use broken DNS and want
  514. to avoid terribly slow AAAA record lookup. Default: 'false'
  515. *--enable-direct-io*[='true'|'false']::
  516. Enable directI/O, which lowers cpu usage while allocating/checking files.
  517. Turn off if you encounter any error.
  518. Default: 'true'
  519. *--event-poll*=POLL::
  520. Specify the method for polling events. The possible Values are
  521. 'epoll' and 'select'. If you use recent Linux that has epoll, then
  522. the default value is 'epoll'. Otherwise, the default value is
  523. 'select'.
  524. *--file-allocation*=METHOD::
  525. Specify file allocation method.
  526. 'none' doesn't pre-allocate file space. 'prealloc' pre-allocates file space
  527. before download begins. This may take some time depending on the size of the
  528. file.
  529. If you are using newer file systems such as ext4
  530. (with extents support), btrfs or xfs, 'falloc' is
  531. your best choice. It allocates large(few GiB)
  532. files almost instantly. Don't use 'falloc' with
  533. legacy file systems such as ext3 because it takes
  534. almost same time as 'prealloc' and it blocks aria2
  535. entirely until allocation finishes. 'falloc' may
  536. not be available if your system doesn't have
  537. *posix_fallocate*() function.
  538. Possible Values: 'none', 'prealloc', 'falloc'
  539. Default: 'prealloc'
  540. *--human-readable*[='true'|'false']::
  541. Print sizes and speed in human readable format (e.g., 1.2Ki, 3.4Mi)
  542. in the console readout. Default: 'true'
  543. *--interface*=INTERFACE::
  544. Bind sockets to given interface. You can specify interface name, IP
  545. address and hostname.
  546. Possible Values: interface, IP address, hostname
  547. [NOTE]
  548. If an interface has multiple addresses, it is highly recommended to
  549. specify IP address explicitly. See also *--disable-ipv6*. If your
  550. system doesn't have getifaddrs(), this option doesn't accept interface
  551. name.
  552. *--log-level*=LEVEL::
  553. Set log level to output.
  554. LEVEL is either 'debug', 'info', 'notice', 'warn' or 'error'.
  555. Default: 'debug'
  556. *--on-download-complete*=COMMAND::
  557. Set the command to be executed when download completes. See
  558. *--on-download-start* option for the requirement of COMMAND. See
  559. also *--on-download-stop* option. Possible Values:
  560. '/path/to/command'
  561. *--on-download-error*=COMMAND::
  562. Set the command to be executed when download aborts due to error.
  563. See *--on-download-start* option for the requirement of COMMAND.
  564. See also *--on-download-stop* option. Possible Values:
  565. '/path/to/command'
  566. *--on-download-start*=COMMAND::
  567. Set the command to be executed when download starts up. COMMAND must
  568. take just one argument and GID is passed to COMMAND as a first
  569. argument. Possible Values: '/path/to/command'
  570. *--on-download-stop*=COMMAND::
  571. Set the command to be executed when download stops. You can override
  572. the command to be executed for particular download result using
  573. *--on-download-complete* and *--on-download-error*. If they are
  574. specified, command specified in this option is not executed. See
  575. *--on-download-start* option for the requirement of COMMAND.
  576. Possible Values: '/path/to/command'
  577. *--summary-interval*=SEC::
  578. Set interval in seconds to output download progress summary.
  579. Setting '0' suppresses the output.
  580. Default: '60'
  581. [NOTE]
  582. In multi file torrent downloads, the files adjacent forward to the specified files
  583. are also allocated if they share the same piece.
  584. *-Z*, *--force-sequential*[='true'|'false']::
  585. Fetch URIs in the command-line sequentially and download each URI in a
  586. separate session, like the usual command-line download utilities.
  587. Default: 'false'
  588. *--max-overall-download-limit*=SPEED::
  589. Set max overall download speed in bytes/sec. '0' means
  590. unrestricted. You can append 'K' or 'M'(1K = 1024, 1M = 1024K). To
  591. limit the download speed per download, use *--max-download-limit*
  592. option. Default: '0'
  593. *--max-download-limit*=SPEED::
  594. Set max download speed per each download in bytes/sec. '0' means
  595. unrestricted. You can append 'K' or 'M'(1K = 1024, 1M = 1024K). To
  596. limit the overall download speed, use *--max-overall-download-limit*
  597. option. Default: '0'
  598. *--no-conf*::
  599. Disable loading aria2.conf file.
  600. *--no-file-allocation-limit*=SIZE::
  601. No file allocation is made for files whose size is smaller than SIZE.
  602. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  603. Default: '5M'
  604. *-P*, *--parameterized-uri*[='true'|'false']::
  605. Enable parameterized URI support.
  606. You can specify set of parts: 'http://{sv1,sv2,sv3}/foo.iso'.
  607. Also you can specify numeric sequences with step counter:
  608. '\http://host/image[000-100:2].img'.
  609. A step counter can be omitted.
  610. If all URIs do not point to the same file, such as the second example above,
  611. -Z option is required.
  612. Default: 'false'
  613. *-q*, *--quiet*[='true'|'false']::
  614. Make aria2 quiet (no console output).
  615. Default: 'false'
  616. *--realtime-chunk-checksum*='true'|'false'::
  617. Validate chunk of data by calculating checksum while downloading a file if
  618. chunk checksums are provided.
  619. Default: 'true'
  620. *--stop*=SEC::
  621. Stop application after SEC seconds has passed.
  622. If '0' is given, this feature is disabled.
  623. Default: '0'
  624. *-v*, *--version*::
  625. Print the version number, copyright and the configuration information and
  626. exit.
  627. Options That Take An Optional Argument
  628. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  629. The options that have its argument surrounded by square brackets([])
  630. take an optional argument. Usually omiting the argument is evaluated to 'true'.
  631. If you use short form of these options(such as '-V') and give
  632. an argument, then the option name and its argument should be concatenated(e.g.
  633. '-Vfalse'). If any spaces are inserted between the option name and the argument,
  634. the argument will be treated as URI and usually this is not what you expect.
  635. URI, MAGNET, TORRENT_FILE, METALINK_FILE
  636. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  637. You can specify multiple URLs in command-line. Unless you specify
  638. *-Z* option, all URLs must point to the same file or downloading will
  639. fail.
  640. You can specify arbitrary number of BitTorrent Magnet URI. Please note
  641. that they are always treated as a separate download. Both hex encoded
  642. 40 characters Info Hash and Base32 encoded 32 characters Info Hash are
  643. supported. The multiple "tr" parameters are supported. Because
  644. BitTorrent Magnet URI is likely to contain "&" character, it is highly
  645. recommended to always quote URI with single(') or double(") quotation.
  646. It is strongly recommended to enable DHT especially when "tr"
  647. parameter is missing. See http://www.bittorrent.org/beps/bep_0009.html
  648. for more details about BitTorrent Magnet URI.
  649. You can also specify arbitrary number of torrent files and metalink files
  650. stored on a local drive. Please note that they are always treated as a
  651. separate download.
  652. You can specify both torrent file with -T option and URLs. By doing
  653. this, you can download a file from both torrent swarm and HTTP(S)/FTP
  654. server at the same time, while the data from HTTP(S)/FTP are uploaded
  655. to the torrent swarm. For single file torrents, URL can be a complete
  656. URL pointing to the resource or if URL ends with /, name in torrent
  657. file in torrent is added. For multi-file torrents, name and path are
  658. added to form a URL for each file.
  659. [NOTE]
  660. Make sure that URL is quoted with single(') or double(") quotation if it
  661. contains "&" or any characters that have special meaning in shell.
  662. Resuming Download
  663. ~~~~~~~~~~~~~~~~~
  664. Usually, you can resume transfer by just issuing same command(aria2c
  665. URL) if the previous transfer is made by aria2.
  666. If the previous transfer is made by a browser or wget like sequential
  667. download manager, then use -c option to continue the transfer(aria2c
  668. *-c* URL).
  669. EXIT STATUS
  670. -----------
  671. Because aria2 can handle multiple downloads at once, it encounters
  672. lots of errors in a session. aria2 returns the following exit status
  673. based on the last error encountered.
  674. *0*::
  675. If all downloads are successful.
  676. *1*::
  677. If an unknown error occurs.
  678. *2*::
  679. If time out occurs.
  680. *3*::
  681. If a resource is not found.
  682. *4*::
  683. If aria2 sees the specfied number of "resource not found" error.
  684. See *--max-file-not-found* option).
  685. *5*::
  686. If a download aborts because download speed is too slow.
  687. See *--lowest-speed-limit* option)
  688. *6*::
  689. If network problem occurs.
  690. *7*::
  691. If there are unfinished downloads. This error is only reported if
  692. all finished downloads are successful and there are unfinished
  693. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  694. or sending TERM or INT signal.
  695. [NOTE]
  696. An error occurred in a finished download will not be reported
  697. as exit status.
  698. ENVIRONMENT
  699. -----------
  700. aria2 recognizes the following environment variables.
  701. http_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  702. Specify proxy server for use in HTTP.
  703. Overrides http-proxy value in configuration file.
  704. The command-line option *--http-proxy* overrides this value.
  705. https_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  706. Specify proxy server for use in HTTPS.
  707. Overrides https-proxy value in configuration file.
  708. The command-line option *--https-proxy* overrides this value.
  709. ftp_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  710. Specify proxy server for use in FTP.
  711. Overrides ftp-proxy value in configuration file.
  712. The command-line option *--ftp-proxy* overrides this value.
  713. all_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  714. Specify proxy server for use if no protocol-specific proxy is specified.
  715. Overrides all-proxy value in configuration file.
  716. The command-line option *--all-proxy* overrides this value.
  717. no_proxy [DOMAIN,...]::
  718. Specify comma-separated hostname or domains to which proxy should not be used.
  719. Overrides no-proxy value in configuration file.
  720. The command-line option *--no-proxy* overrides this value.
  721. FILES
  722. -----
  723. aria2.conf
  724. ~~~~~~~~~~
  725. By default, aria2 parses '$HOME/.aria2/aria2.conf' as a configuraiton
  726. file. You can specify the path to configuration file using
  727. *--conf-path* option. If you don't want to use the configuraitonf
  728. file, use *--no-conf* option.
  729. The configuration file is a text file and has 1 option per each
  730. line. In each line, you can specify name-value pair in the format:
  731. NAME=VALUE, where name is the long command-line option name without
  732. "--" prefix. You can use same syntax for the command-line option. The
  733. lines beginning "#" are treated as comments.
  734. --------------------------------------
  735. # sample configuration file for aria2c
  736. listen-port=60000
  737. dht-listen-port=60000
  738. seed-ratio=1.0
  739. max-upload-limit=50K
  740. ftp-pasv=true
  741. --------------------------------------
  742. dht.dat
  743. ~~~~~~~~
  744. By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.
  745. Control File
  746. ~~~~~~~~~~~~
  747. aria2 uses a control file to track the progress of a download. A
  748. control file is placed in the same directory as the downloading file
  749. and its filename is the filename of downloading file with ".aria2"
  750. appended. For example, if you are downloading file.zip, then the
  751. control file should be file.zip.aria2. (There is a exception for this
  752. naming convention. If you are downloading a multi torrent, its
  753. control file is the "top directory" name of the torrent with ".aria2"
  754. appended. The "top directory" name is a value of "name" key in "info"
  755. directory in a torrent file.)
  756. Usually a control file is deleted once download completed. If aria2
  757. decides that download cannot be resumed(for example, when downloading
  758. a file from a HTTP server which doesn't support resume), a control
  759. file is not created.
  760. Normally if you lose a control file, you cannot resume download. But
  761. if you have a torrent or metalink with chunk checksums for the file,
  762. you can resume the download without a control file by giving -V option
  763. to aria2c in command-line.
  764. Input File
  765. ~~~~~~~~~~
  766. The input file can contain a list of URIs for aria2 to download. You
  767. can specify multiple URIs for a single entity: separate URIs on a
  768. single line using the TAB character.
  769. Each line is treated as if it is provided in command-line argument.
  770. Therefore they are affected by *-Z* and *-P* options.
  771. Additionally, the following options can be specified after each line
  772. of URIs. These optional lines must start with white space(s).
  773. * dir
  774. * check-integrity
  775. * continue
  776. * all-proxy
  777. * connect-timeout
  778. * dry-run
  779. * lowest-speed-limit
  780. * max-file-not-found
  781. * max-tries
  782. * no-proxy
  783. * out
  784. * proxy-method
  785. * remote-time
  786. * split
  787. * timeout
  788. * http-auth-challenge
  789. * http-no-cache
  790. * http-user
  791. * http-passwd
  792. * http-proxy
  793. * https-proxy
  794. * referer
  795. * enable-http-keep-alive
  796. * enable-http-pipelining
  797. * header
  798. * use-head
  799. * user-agent
  800. * ftp-user
  801. * ftp-passwd
  802. * ftp-pasv
  803. * ftp-proxy
  804. * ftp-type
  805. * ftp-reuse-connection
  806. * no-netrc
  807. * select-file
  808. * bt-external-ip
  809. * bt-hash-check-seed
  810. * bt-max-open-files
  811. * bt-max-peers
  812. * bt-metadata-only
  813. * bt-min-crypto-level
  814. * bt-prioritize-piece
  815. * bt-require-crypto
  816. * bt-request-peer-speed-limit
  817. * bt-save-metadata
  818. * bt-seed-unverified
  819. * bt-stop-timeout
  820. * bt-tracker-interval
  821. * enable-peer-exchange
  822. * follow-torrent
  823. * index-out
  824. * max-upload-limit
  825. * seed-ratio
  826. * seed-time
  827. * follow-metalink
  828. * metalink-servers
  829. * metalink-language
  830. * metalink-location
  831. * metalink-os
  832. * metalink-version
  833. * metalink-preferred-protocol
  834. * metalink-enable-unique-protocol
  835. * allow-overwrite
  836. * allow-piece-length-change
  837. * async-dns
  838. * auto-file-renaming
  839. * file-allocation
  840. * max-download-limit
  841. * no-file-allocation-limit
  842. * parameterized-uri
  843. * realtime-chunk-checksum
  844. These options have exactly same meaning of the ones in the
  845. command-line options, but it just applies to the URIs it belongs to.
  846. For example, the content of uri.txt is
  847. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  848. http://server/file.iso http://mirror/file.iso
  849. dir=/iso_images
  850. out=file.img
  851. http://foo/bar
  852. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  853. If aria2 is executed with *-i* uri.txt *-d* /tmp options, then
  854. 'file.iso' is saved as '/iso_images/file.img' and it is downloaded
  855. from \http://server/file.iso and \http://mirror/file.iso. The file
  856. 'bar' is downloaded from \http://foo/bar and saved as '/tmp/bar'.
  857. In some cases, *out* parameter has no effect. See note of *--out*
  858. option for the restrictions.
  859. Server Performance Profile
  860. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  861. This section describes the format of server performance profile. The
  862. file is plain text and each line has several NAME=VALUE pair,
  863. delimited by comma. Currently following NAMEs are recognized:
  864. host::
  865. Hostname of the server. Required.
  866. protocol::
  867. Protocol for this profile, such as ftp, http. Required.
  868. dl_speed::
  869. The average download speed observed in the previous download in
  870. bytes per sec. Required.
  871. sc_avg_speed::
  872. The average download speed observed in the previous download in
  873. bytes per sec. This value is only updated if the download is done in
  874. single connection environment and only used by
  875. AdaptiveURISelector. Optional.
  876. mc_avg_speed::
  877. The average download speed observed in the previous download in
  878. bytes per sec. This value is only updated if the download is done in
  879. multi connection environment and only used by
  880. AdaptiveURISelector. Optional.
  881. counter::
  882. How many times the server is used. Currently this value is only used
  883. by AdaptiveURISelector. Optional.
  884. last_updated::
  885. Last contact time in GMT with this server, specified in the seconds
  886. from the Epoch. Required.
  887. status::
  888. ERROR is set when server cannot be reached or out-of-service or
  889. timeout occurred. Otherwise, OK is set.
  890. Those fields must exist in one line. The order of the fields is not
  891. significant. You can put pairs other than the above; they are simply
  892. ignored.
  893. An example follows:
  894. --------------------------------------------------------------------------------
  895. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  896. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  897. --------------------------------------------------------------------------------
  898. XML-RPC INTERFACE
  899. -----------------
  900. Terminology
  901. ~~~~~~~~~~~
  902. GID::
  903. GID(or gid) is the key to manage each download. Each download has an
  904. unique GID. Currently GID looks like an integer, but don't treat it
  905. as integer because it may be changed to another type in the future
  906. release. Please note that GID is session local and not persisted
  907. when aria2 exits.
  908. Methods
  909. ~~~~~~~
  910. *aria2.addUri* 'uris[, options[, position]]'
  911. This method adds new HTTP(S)/FTP/BitTorrent Magnet URI. 'uris' is of
  912. type array and its element is URI which is of type string. For
  913. BitTorrent Magnet URI, 'uris' must have only one element and it should
  914. be BitTorrent Magnet URI. 'options' is of type struct and its members
  915. are a pair of option name and value. See *Options* below for more
  916. details. If 'position' is given as an integer starting from 0, the
  917. new download is inserted at 'position' in the waiting queue. If
  918. 'position' is not given or 'position' is larger than the size of the
  919. queue, it is appended at the end of the queue. This method returns
  920. GID of registered download.
  921. *aria2.addTorrent* 'torrent[, uris[, options[, position]]]'
  922. This method adds BitTorrent download by uploading .torrent file. If
  923. you want to add BitTorrent Magnet URI, use *aria2.addUri* method
  924. instead. 'torrent' is of type base64 which contains Base64-encoded
  925. .torrent file. 'uris' is of type array and its element is URI which
  926. is of type string. 'uris' is used for Web-seeding. For single file
  927. torrents, URI can be a complete URI pointing to the resource or if URI
  928. ends with /, name in torrent file is added. For multi-file torrents,
  929. name and path in torrent are added to form a URI for each file.
  930. 'options' is of type struct and its members are a pair of option name
  931. and value. See *Options* below for more details. If 'position' is
  932. given as an integer starting from 0, the new download is inserted at
  933. 'position' in the waiting queue. If 'position' is not given or
  934. 'position' is larger than the size of the queue, it is appended at the
  935. end of the queue. This method returns GID of registered download.
  936. *aria2.addMetalink* 'metalink[, options[, position]]'
  937. This method adds Metalink download by uploading .metalink file.
  938. 'metalink' is of type base64 which contains Base64-encoded .metalink
  939. file. 'options' is of type struct and its members are a pair of
  940. option name and value. See *Options* below for more details. If
  941. 'position' is given as an integer starting from 0, the new download is
  942. inserted at 'position' in the waiting queue. If 'position' is not
  943. given or 'position' is larger than the size of the queue, it is
  944. appended at the end of the queue. This method returns array of GID of
  945. registered download.
  946. *aria2.remove* 'gid'
  947. This method removes the download denoted by 'gid'. 'gid' is of type
  948. string. If specified download is in progress, it is stopped at
  949. first. The status of removed download becomes "removed". This method
  950. returns GID of removed download.
  951. *aria2.tellStatus* 'gid'
  952. This method returns download progress of the download denoted by
  953. 'gid'. 'gid' is of type string. The response is of type struct and it
  954. contains following keys. The value type is string.
  955. gid::
  956. GID of this download.
  957. status::
  958. "active" for currently downloading/seeding entry. "waiting" for the
  959. entry in the queue; download is not started. "error" for the stopped
  960. download because of error. "complete" for the stopped and completed
  961. download. "removed" for the download removed by user.
  962. totalLength::
  963. Total length of this download in bytes.
  964. completedLength::
  965. Completed length of this download in bytes.
  966. uploadLength::
  967. Uploaded length of this download in bytes.
  968. bitfield::
  969. Hexadecimal representation of the download progress. The highest bit
  970. corresponds to piece index 0. The set bits indicate the piece is
  971. available and unset bits indicate the piece is missing. The spare
  972. bits at the end are set to zero.
  973. downloadSpeed::
  974. Download speed of this download measured in bytes/sec.
  975. uploadSpeed::
  976. Upload speed of this download measured in bytes/sec.
  977. infoHash::
  978. InfoHash. BitTorrent only.
  979. numSeeders::
  980. The number of seeders the client has connected to. BitTorrent only.
  981. pieceLength::
  982. Piece length in bytes.
  983. numPieces::
  984. The number of pieces.
  985. connections::
  986. The number of peers/servers the client has connected to.
  987. errorCode::
  988. The last error code occurred in this download. The value is of type
  989. string. The error codes are defined in EXIT STATUS section. This
  990. value is only available for stopped/completed downloads.
  991. followedBy::
  992. List of GIDs which are generated by the consequence of this
  993. download. For example, when aria2 downloaded Metalink file, it
  994. generates downloads described in it(see *--follow-metalink*
  995. option). This value is useful to track these auto generated
  996. downloads. If there is no such downloads, this key will not
  997. be included in the response.
  998. belongsTo::
  999. GID of a parent download. Some downloads are a part of another
  1000. download. For example, if a file in Metalink has BitTorrent
  1001. resource, the download of .torrent is a part of that file. If this
  1002. download has no parent, this key will not be included in the
  1003. response.
  1004. *aria2.getUris* 'gid'
  1005. This method returns URIs used in the download denoted by 'gid'. 'gid'
  1006. is of type string. The response is of type array and its element is of
  1007. type struct and it contains following keys. The value type is string.
  1008. uri::
  1009. URI
  1010. *aria2.getFiles* 'gid'
  1011. This method returns file list of the download denoted by 'gid'. 'gid'
  1012. is of type string. The response is of type array and its element is of
  1013. type struct and it contains following keys. The value type is string.
  1014. index::
  1015. Index of file. Starting with 1. This is the same order with the
  1016. files in multi-file torrent.
  1017. path::
  1018. File path.
  1019. length::
  1020. File size in bytes.
  1021. selected::
  1022. "true" if this file is selected by *--select-file* option. If
  1023. *--select-file* is not specified or this is single torrent or no
  1024. torrent download, this value is always "true". Otherwise "false".
  1025. *aria2.getPeers* 'gid'
  1026. This method returns peer list of the download denoted by 'gid'. 'gid'
  1027. is of type string. This method is for BitTorrent only. The response
  1028. is of type array and its element is of type struct and it contains
  1029. following keys. The value type is string.
  1030. peerId::
  1031. Percent-encoded peer ID.
  1032. ip::
  1033. IP address of the peer.
  1034. port::
  1035. Port number of the peer.
  1036. bitfield::
  1037. Hexadecimal representation of the download progress of the peer. The
  1038. highest bit corresponds to piece index 0. The set bits indicate the
  1039. piece is available and unset bits indicate the piece is missing. The
  1040. spare bits at the end are set to zero.
  1041. amChoking::
  1042. "true" if this client is choking the peer. Otherwise "false".
  1043. peerChoking::
  1044. "true" if the peer is choking this client. Otherwise "false".
  1045. downloadSpeed::
  1046. Download speed (byte/sec) that this client obtains from the peer.
  1047. uploadSpeed::
  1048. Upload speed(byte/sec) that this client uploads to the peer.
  1049. seeder::
  1050. "true" is this client is a seeder. Otherwise "false".
  1051. *aria2.tellActive*
  1052. This method returns the list of active downloads. The response is of
  1053. type array and its element is the same struct returned by
  1054. *aria2.tellStatus* method.
  1055. *aria2.tellWaiting* 'offset, num'
  1056. This method returns the list of waiting download. 'offset' is of type
  1057. integer and specifies the offset from the download waiting at the
  1058. front. 'num' is of type integer and specifies the number of downloads
  1059. to be returned.
  1060. If offset is a positive integer, this method returns downloads in the
  1061. range of ['offset', 'offset'+'num').
  1062. 'offset' can be a negative integer. 'offset' == -1 points last
  1063. download in the waiting queue and 'offset' == -2 points the download
  1064. before the last download, and so on. The downloads in the response are
  1065. in reversed order.
  1066. For example, imagine that three downloads "A","B" and "C" are waiting
  1067. in this order. aria2.tellWaiting(0, 1) returns
  1068. ["A"]. aria2.tellWaiting(1, 2) returns ["B", "C"].
  1069. aria2.tellWaiting(-1, 2) returns ["C", "B"].
  1070. The response is of type array and its element is the same struct
  1071. returned by *aria2.tellStatus* method.
  1072. *aria2.tellStopped* 'offset, num'
  1073. This method returns the list of stopped download. 'offset' is of type
  1074. integer and specifies the offset from the oldest download. 'num' is of
  1075. type integer and specifies the number of downloads to be returned.
  1076. 'offset' and 'num' have the same semantics as *aria2.tellWaiting*
  1077. method.
  1078. The response is of type array and its element is the same struct
  1079. returned by *aria2.tellStatus* method.
  1080. *aria2.changePosition* 'gid, pos, how'
  1081. This method changes the position of the download denoted by
  1082. 'gid'. 'pos' is of type integer. 'how' is of type string. If 'how' is
  1083. "POS_SET", it moves the download to a position relative to the
  1084. beginning of the queue. If 'how' is "POS_CUR", it moves the download
  1085. to a position relative to the current position. If 'how' is "POS_END",
  1086. it moves the download to a position relative to the end of the
  1087. queue. If the destination position is less than 0 or beyond the end of
  1088. the queue, it moves the download to the beginning or the end of the
  1089. queue respectively. The response is of type integer and it is the
  1090. destination position.
  1091. For example, if GID#1 is placed in position 3, aria2.changePosition(1,
  1092. -1, POS_CUR) will change its position to 2. Additional
  1093. aria2.changePosition(1, 0, POS_SET) will change its position to 0(the
  1094. beginning of the queue).
  1095. *aria2.getOption* 'gid'
  1096. This method returns options of the download denoted by 'gid'. The
  1097. response is of type struct. Its key is the name of option. The value type
  1098. is string.
  1099. *aria2.changeOption* 'gid, options'
  1100. This method changes options of the download denoted by 'gid'
  1101. dynamically. 'gid' is of type string. 'options' is of type struct
  1102. and the available options are: *bt-max-peers*,
  1103. *bt-request-peer-speed-limit*, *max-download-limit* and
  1104. *max-upload-limit*. This method returns "OK" for success.
  1105. *aria2.getGlobalOption*
  1106. This method returns global options. The response is of type
  1107. struct. Its key is the name of option. The value type is string.
  1108. Because global options are used as a template for the options of newly
  1109. added download, the response contains keys returned by
  1110. *aria2.getOption* method.
  1111. *aria2.changeGlobalOption* 'options'
  1112. This method changes global options dynamically. 'options' is of type
  1113. struct and the available options are *max-concurrent-downloads*,
  1114. *max-overall-download-limit* and *max-overall-upload-limit*. This
  1115. method returns "OK" for success.
  1116. *aria2.purgeDownloadResult*
  1117. This method purges completed/error/removed downloads to free memory.
  1118. This method returns "OK".
  1119. *aria2.getVersion*
  1120. This method returns version of the program and the list of enabled
  1121. features. The response is of type struct and contains following keys.
  1122. version::
  1123. Version number of the program in string.
  1124. enabledFeatures::
  1125. List of enabled features. Each feature name is of type string.
  1126. *system.multicall* 'methods'
  1127. This methods encapsulates multiple method calls in a single request.
  1128. 'methods' is of type array and its element is struct. The struct
  1129. contains two keys: "methodName" and "params". "methodName" is the
  1130. method name to call and "params" is array containing parameters to the
  1131. method. This method returns array of responses. The element of array
  1132. will either be a one-item array containing the return value of each
  1133. method call or struct of fault element if an encapsulated method call
  1134. fails.
  1135. Error Handling
  1136. ~~~~~~~~~~~~~~
  1137. In case of error, aria2 returns faultCode=1 and the error message in
  1138. faultString.
  1139. Options
  1140. ~~~~~~~
  1141. Same options for *-i* list are available. See *Input File* subsection
  1142. for complete list of options.
  1143. In the option struct, name element is option name(without preceding
  1144. "--") and value element is argument as string.
  1145. -------------------------------------------------
  1146. <struct>
  1147. <member>
  1148. <name>split</name>
  1149. <value><string>1</string></value>
  1150. </member>
  1151. <member>
  1152. <name>http-proxy</name>
  1153. <value><string>http://proxy/</string></value>
  1154. </member>
  1155. </struct>
  1156. -------------------------------------------------
  1157. *header* and *index-out* option are allowed multiple times in
  1158. command-line. Since name should be unique in struct(many XML-RPC
  1159. library implementation uses hash or dict for struct), single string is
  1160. not enough. To overcome this situation, they can take array as value
  1161. as well as string.
  1162. ---------------------------------------------------------------
  1163. <struct>
  1164. <member>
  1165. <name>header</name>
  1166. <value>
  1167. <array>
  1168. <data>
  1169. <value><string>Accept-Language: ja</string></value>
  1170. <value><string>Accept-Charset: utf-8</string></value>
  1171. </data>
  1172. </array>
  1173. </value>
  1174. </member>
  1175. </struct>
  1176. ---------------------------------------------------------------
  1177. Sample XML-RPC Client Code
  1178. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1179. The following Ruby script adds 'http://localhost/aria2.tar.bz2' to
  1180. aria2c operated on localhost with option *--dir*='/downloads' and
  1181. prints its reponse.
  1182. ----------------------------------------------
  1183. #!/usr/bin/env ruby
  1184. require 'xmlrpc/client'
  1185. require 'pp'
  1186. client=XMLRPC::Client.new2("http://localhost:6800/rpc")
  1187. options={ "dir" => "/downloads" }
  1188. result=client.call("aria2.addUri", [ "http://localhost/aria2.tar.bz2" ], options)
  1189. pp result
  1190. ----------------------------------------------
  1191. EXAMPLE
  1192. -------
  1193. HTTP/FTP Segmented Download
  1194. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1195. Download a file
  1196. ^^^^^^^^^^^^^^^
  1197. --------------------------------
  1198. aria2c "http://host/file.zip"
  1199. --------------------------------
  1200. [NOTE]
  1201. aria2 uses 5 connections to download 1 file by default.
  1202. Download a file using 1 connection
  1203. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1204. ----------------------------------
  1205. aria2c -s1 "http://host/file.zip"
  1206. ----------------------------------
  1207. [NOTE]
  1208. aria2 uses 5 connections to download 1 file by default.
  1209. -s1 limits the number of connections to just 1.
  1210. [NOTE]
  1211. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory. You can change URLs as long as they are pointing to the same file.
  1212. Download a file from 2 different HTTP servers
  1213. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1214. ------------------------------------------------------
  1215. aria2c "http://host/file.zip" "http://mirror/file.zip"
  1216. ------------------------------------------------------
  1217. Download a file from HTTP and FTP servers
  1218. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1219. -----------------------------------------------------
  1220. aria2c "http://host1/file.zip" "ftp://host2/file.zip"
  1221. -----------------------------------------------------
  1222. Download files listed in a text file concurrently
  1223. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1224. ------------------------
  1225. aria2c -ifiles.txt -j2
  1226. ------------------------
  1227. [NOTE]
  1228. -j option specifies the number of parallel downloads.
  1229. Using proxy
  1230. ^^^^^^^^^^^
  1231. For HTTP:
  1232. ----------------------------------------------------------
  1233. aria2c --http-proxy="http://proxy:8080" "http://host/file"
  1234. ----------------------------------------------------------
  1235. For FTP:
  1236. --------------------------------------------------------
  1237. aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"
  1238. --------------------------------------------------------
  1239. [NOTE]
  1240. See *--http-proxy*, *--https-proxy*, *--ftp-proxy* and *--all-proxy* for
  1241. details.
  1242. You can specify proxy in the environment variables. See *ENVIRONMENT* section.
  1243. Proxy with authorization
  1244. ^^^^^^^^^^^^^^^^^^^^^^^^
  1245. ----------------------------------------------------------------------------
  1246. aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"
  1247. ----------------------------------------------------------------------------
  1248. Metalink Download
  1249. ~~~~~~~~~~~~~~~~~
  1250. Download files with remote Metalink
  1251. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1252. --------------------------------------------------------
  1253. aria2c --follow-metalink=mem "http://host/file.metalink"
  1254. --------------------------------------------------------
  1255. Download using a local metalink file
  1256. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1257. ----------------------------------------------------------
  1258. aria2c -p --lowest-speed-limit=4000 file.metalink
  1259. ----------------------------------------------------------
  1260. [NOTE]
  1261. To pause a download, press Ctrl-C.
  1262. You can resume the transfer by running aria2c with the same argument in the same
  1263. directory.
  1264. Download several local metalink files
  1265. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1266. ----------------------------------------
  1267. aria2c -j2 file1.metalink file2.metalink
  1268. ----------------------------------------
  1269. Download only selected files using index
  1270. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1271. -------------------------------------------
  1272. aria2c --select-file=1-4,8 file.metalink
  1273. -------------------------------------------
  1274. [NOTE]
  1275. The index is printed to the console using -S option.
  1276. Download a file using a local .metalink file with user preference
  1277. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1278. ------------------------------------------------------------------------------
  1279. aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink
  1280. ------------------------------------------------------------------------------
  1281. BitTorrent Download
  1282. ~~~~~~~~~~~~~~~~~~~
  1283. Download files from remote BitTorrent file
  1284. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1285. ------------------------------------------------------
  1286. aria2c --follow-torrent=mem "http://host/file.torrent"
  1287. ------------------------------------------------------
  1288. Download using a local torrent file
  1289. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1290. ---------------------------------------------
  1291. aria2c --max-upload-limit=40K file.torrent
  1292. ---------------------------------------------
  1293. [NOTE]
  1294. --max-upload-limit specifies the max of upload rate.
  1295. [NOTE]
  1296. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory.
  1297. Download using BitTorrent Magnet URI
  1298. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1299. ------------------------------------------------------------------------------
  1300. aria2c "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&dn=aria2"
  1301. ------------------------------------------------------------------------------
  1302. [NOTE]
  1303. Don't forget to quote BitTorrent Magnet URI which includes "&"
  1304. character with single(') or double(") quotation.
  1305. Download 2 torrents
  1306. ^^^^^^^^^^^^^^^^^^^
  1307. --------------------------------------
  1308. aria2c -j2 file1.torrent file2.torrent
  1309. --------------------------------------
  1310. Download a file using torrent and HTTP/FTP server
  1311. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1312. ------------------------------------------------------------
  1313. aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"
  1314. ------------------------------------------------------------
  1315. [NOTE]
  1316. Downloading multi file torrent with HTTP/FTP is not supported.
  1317. Download only selected files using index(usually called "selectable download")
  1318. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1319. ---------------------------------------
  1320. aria2c --select-file=1-4,8 file.torrent
  1321. ---------------------------------------
  1322. [NOTE]
  1323. The index is printed to the console using -S option.
  1324. Specify output filename
  1325. ^^^^^^^^^^^^^^^^^^^^^^^
  1326. To specify output filename for BitTorrent downloads, you need to know
  1327. the index of file in torrent file using *-S* option. For example, the
  1328. output looks like this:
  1329. --------------------------
  1330. idx|path/length
  1331. ===+======================
  1332. 1|dist/base-2.6.18.iso
  1333. |99.9MiB
  1334. ---+----------------------
  1335. 2|dist/driver-2.6.18.iso
  1336. |169.0MiB
  1337. ---+----------------------
  1338. --------------------------
  1339. To save 'dist/base-2.6.18.iso' in '/tmp/mydir/base.iso' and
  1340. 'dist/driver-2.6.18.iso' in '/tmp/dir/driver.iso', use the following
  1341. command:
  1342. -----------------------------------------------------------------------------------------
  1343. aria2c --dir=/tmp --index-out=1=mydir/base.iso --index-out=2=dir/driver.iso file.torrent
  1344. -----------------------------------------------------------------------------------------
  1345. Change the listening port for incoming peer
  1346. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1347. ---------------------------------------------------
  1348. aria2c --listen-port=7000-7001,8000 file.torrent
  1349. ---------------------------------------------------
  1350. [NOTE]
  1351. Since aria2 doesn't configure firewall or router for port forwarding, it's up
  1352. to you to do it manually.
  1353. Specify the condition to stop program after torrent download finished
  1354. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1355. -------------------------------------------------------
  1356. aria2c --seed-time=120 --seed-ratio=1.0 file.torrent
  1357. -------------------------------------------------------
  1358. [NOTE]
  1359. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.
  1360. Throttle upload speed
  1361. ^^^^^^^^^^^^^^^^^^^^^
  1362. ----------------------------------------------
  1363. aria2c --max-upload-limit=100K file.torrent
  1364. ----------------------------------------------
  1365. Enable DHT
  1366. ^^^^^^^^^^
  1367. ---------------------------------------------------------
  1368. aria2c --enable-dht --dht-listen-port=6881 file.torrent
  1369. ---------------------------------------------------------
  1370. [NOTE]
  1371. DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  1372. forwarding, it's up to you to do it manually.
  1373. More advanced HTTP features
  1374. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1375. Load cookies
  1376. ^^^^^^^^^^^^
  1377. --------------------------------------------------------
  1378. aria2c --load-cookies=cookies.txt "http://host/file.zip"
  1379. --------------------------------------------------------
  1380. [NOTE]
  1381. You can use Firefox/Mozilla's cookie file without modification.
  1382. Resume download started by web browsers or another programs
  1383. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1384. -------------------------------------------------------
  1385. aria2c -c -s2 "http://host/partiallydownloadedfile.zip"
  1386. -------------------------------------------------------
  1387. Client certificate authorization for SSL/TLS
  1388. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1389. ------------------------------------------------------------------------------------------
  1390. aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file
  1391. ------------------------------------------------------------------------------------------
  1392. [NOTE]
  1393. The file specified in *--private-key* must be decrypted. The behavior when
  1394. encrypted one is given is undefined.
  1395. Verify peer in SSL/TLS using given CA certificates
  1396. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1397. ------------------------------------------------------------------------------------------
  1398. aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file
  1399. ------------------------------------------------------------------------------------------
  1400. And more advanced features
  1401. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1402. Throttle download speed
  1403. ^^^^^^^^^^^^^^^^^^^^^^^
  1404. -------------------------------------------------
  1405. aria2c --max-download-limit=100K file.metalink
  1406. -------------------------------------------------
  1407. Repair a damaged download
  1408. ^^^^^^^^^^^^^^^^^^^^^^^^^
  1409. -----------------------
  1410. aria2c -V file.metalink
  1411. -----------------------
  1412. [NOTE]
  1413. This option is only available used with BitTorrent or metalink with chunk
  1414. checksums.
  1415. Drop connection if download speed is lower than specified value
  1416. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1417. ------------------------------------------------
  1418. aria2c --lowest-speed-limit=10K file.metalink
  1419. ------------------------------------------------
  1420. Parameterized URI support
  1421. ^^^^^^^^^^^^^^^^^^^^^^^^^
  1422. You can specify set of parts:
  1423. -----------------------------------------------
  1424. aria2c -P "http://{host1,host2,host3}/file.iso"
  1425. -----------------------------------------------
  1426. You can specify numeric sequence:
  1427. ---------------------------------------------
  1428. aria2c -Z -P "http://host/image[000-100].png"
  1429. ---------------------------------------------
  1430. [NOTE]
  1431. -Z option is required if the all URIs don't point to the same file, such as the above example.
  1432. You can specify step counter:
  1433. -------------------------------------------
  1434. aria2c -Z -P "http://host/image[A-Z:2].png"
  1435. -------------------------------------------
  1436. Parallel downloads of arbitrary number of URL,metalink,torrent
  1437. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1438. --------------------------------------------------------------
  1439. aria2c -j3 -Z "http://host/file1" file2.torrent file3.metalink
  1440. --------------------------------------------------------------
  1441. BitTorrent Encryption
  1442. ^^^^^^^^^^^^^^^^^^^^^
  1443. Encrypt whole payload using ARC4:
  1444. -------------------------------------------------------------------------
  1445. aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent
  1446. -------------------------------------------------------------------------
  1447. SEE ALSO
  1448. --------
  1449. Project Web Site: http://aria2.sourceforge.net/
  1450. aria2 Wiki: http://sourceforge.net/apps/trac/aria2/wiki
  1451. Metalink Homepage: http://www.metalinker.org/
  1452. COPYRIGHT
  1453. ---------
  1454. Copyright (C) 2006, 2009 Tatsuhiro Tsujikawa
  1455. This program is free software; you can redistribute it and/or modify
  1456. it under the terms of the GNU General Public License as published by
  1457. the Free Software Foundation; either version 2 of the License, or
  1458. (at your option) any later version.
  1459. This program is distributed in the hope that it will be useful,
  1460. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1461. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1462. GNU General Public License for more details.
  1463. You should have received a copy of the GNU General Public License
  1464. along with this program; if not, write to the Free Software
  1465. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  1466. In addition, as a special exception, the copyright holders give
  1467. permission to link the code of portions of this program with the
  1468. OpenSSL library under certain conditions as described in each
  1469. individual source file, and distribute linked combinations
  1470. including the two.
  1471. You must obey the GNU General Public License in all respects
  1472. for all of the code used other than OpenSSL. If you modify
  1473. file(s) with this exception, you may extend this exception to your
  1474. version of the file(s), but you are not obligated to do so. If you
  1475. do not wish to do so, delete this exception statement from your
  1476. version. If you delete this exception statement from all source
  1477. files in the program, then also delete it here.