aria2c.1.txt 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. NAME
  5. ----
  6. aria2c - The ultra fast download utility
  7. SYNOPSIS
  8. --------
  9. aria2c ['OPTIONS'] ['URL' | 'TORRENT_FILE' | 'METALINK_FILE']...
  10. DESCRIPTION
  11. -----------
  12. aria2 is a utility for downloading files. The supported protocols are
  13. HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from
  14. multiple sources/protocols and tries to utilize your maximum download
  15. bandwidth. It supports downloading a file from HTTP(S)/FTP and
  16. BitTorrent at the same time, while the data downloaded from
  17. HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's
  18. chunk checksums, aria2 automatically validates chunks of data while
  19. downloading a file like BitTorrent.
  20. OPTIONS
  21. -------
  22. Basic Options
  23. ~~~~~~~~~~~~~
  24. *-d*, *--dir*=DIR::
  25. The directory to store the downloaded file.
  26. *-i*, *--input-file*=FILE::
  27. Downloads URIs found in FILE. You can specify multiple URIs for a single
  28. entity: separate URIs on a single line using the TAB character.
  29. Reads input from stdin when '-' is specified.
  30. The additional *out* and *dir* options can be specified after each line of
  31. URIs. This optional line must start with white space(s).
  32. See *Input File* subsection for details.
  33. *-l*, *--log*=LOG::
  34. The file name of the log file. If '-' is specified, log is written to
  35. stdout.
  36. *-j*, *--max-concurrent-downloads*=N::
  37. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  38. torrent and metalink. See also *-s* and *-C* option.
  39. Default: '5'
  40. *-V*, *--check-integrity*[='true'|'false']::
  41. Check file integrity by validating piece hashes.
  42. This option has effect only in BitTorrent and Metalink downloads with
  43. chunk checksums.
  44. Use this option to re-download a damaged portion of a file.
  45. Default: 'false'
  46. *-c*, *--continue*::
  47. Continue downloading a partially downloaded file.
  48. Use this option to resume a download started by a web browser or another
  49. program which downloads files sequentially from the beginning.
  50. Currently this option is only applicable to HTTP(S)/FTP downloads.
  51. *-h*, *--help*[=CATEGORY]::
  52. Print usage and exit.
  53. The help messages are classified in several categories.
  54. For example, type "*--help*=http" for detailed explanation for the options
  55. related to HTTP. If no matching category is found, search option name using
  56. a given word in middle match and print the result.
  57. Available Values: 'basic', 'advanced', 'http', 'https', 'ftp', 'metalink',
  58. 'bittorrent', 'all'
  59. Default: 'basic'
  60. HTTP/FTP Options
  61. ~~~~~~~~~~~~~~~~
  62. *--all-proxy*=PROXY::
  63. Use this proxy server for all protocols.
  64. You can override this setting and specify a proxy server for a particular
  65. protocol using *--http-proxy*, *--https-proxy* and *--ftp-proxy* options.
  66. This affects all URLs.
  67. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  68. *--connect-timeout*=SEC::
  69. Set the connect timeout in seconds to establish connection to
  70. HTTP/FTP/proxy server. After the connection is established, this
  71. option makes no effect and *--timeout* option is used instead.
  72. Default: '60'
  73. *--dry-run*[='true'|'false']::
  74. If 'true' is given, aria2 just checks whether the remote file is
  75. available and doesn't download data. This option has effect on
  76. HTTP/FTP download. BitTorrent downloads are canceled if 'true' is
  77. specified. Default: 'false'
  78. *--lowest-speed-limit*=SPEED::
  79. Close connection if download speed is lower than or equal to this
  80. value(bytes per sec).
  81. '0' means aria2 does not have a lowest speed limit.
  82. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  83. This option does not affect BitTorrent downloads.
  84. Default: '0'
  85. *--max-file-not-found*=NUM::
  86. If aria2 receives `file not found' status from the remote HTTP/FTP
  87. servers NUM times without getting a single byte, then force the
  88. download to fail. Specify '0' to disable this option. This options is
  89. effective only when using HTTP/FTP servers.
  90. Default: '0'
  91. *-m*, *--max-tries*=N::
  92. Set number of tries. '0' means unlimited.
  93. Default: '5'
  94. *-n*, *--no-netrc*::
  95. Disables netrc support. netrc support is enabled by default.
  96. *--no-proxy*=DOMAINS::
  97. Specify comma separated hostnames or domains where proxy should not be
  98. used.
  99. *-o*, *--out*=FILE::
  100. The file name of the downloaded file.
  101. [NOTE]
  102. In Metalink or BitTorrent download you cannot specify file name.
  103. The file name specified here is only used when the URLs fed to aria2
  104. are done by command line without *-i*, *-Z* option. For example:
  105. aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"
  106. *--proxy-method*=METHOD::
  107. Set the method to use in proxy request. 'METHOD' is either 'get' or
  108. 'tunnel'. HTTPS downloads always use 'tunnel' regardless of this
  109. option.
  110. Default: 'get'
  111. *-R*, *--remote-time*[='true'|'false']::
  112. Retrieve timestamp of the remote file from the remote HTTP/FTP
  113. server and if it is available, apply it to the local file.
  114. Default: 'false'
  115. *--retry-wait*=SEC::
  116. Set the seconds to wait to retry after an error has occured.
  117. Specify a value between '0' and '60'.
  118. Default: '5'
  119. *--server-stat-of*=FILE::
  120. Specify the filename to which performance profile of the servers is
  121. saved. You can load saved data using *--server-stat-if* option. See
  122. *Server Performance Profile* subsection below for file format.
  123. *--server-stat-if*=FILE::
  124. Specify the filename to load performance profile of the servers. The
  125. loaded data will be used in some URI selector such as 'feedback'.
  126. See also *--uri-selector* option. See *Server Performance Profile*
  127. subsection below for file format.
  128. *--server-stat-timeout*=SEC::
  129. Specifies timeout in seconds to invalidate performance profile of
  130. the servers since the last contact to them.
  131. Default: '86400' (24hours)
  132. *-s*, *--split*=N::
  133. Download a file using N connections.
  134. If more than N URLs are given, first N URLs are used and remaining URLs are
  135. used for backup.
  136. If less than N URLs are given, those URLs are used more than once so that N
  137. connections total are made simultaneously.
  138. Please see *-j* option too.
  139. Please note that in Metalink download, this option has no effect and use
  140. *-C* option instead.
  141. Default: '5'
  142. *-t*, *--timeout*=SEC::
  143. Set timeout in seconds.
  144. Default: '60'
  145. *--uri-selector*=SELECTOR::
  146. Specify URI selection algorithm. The possible values are 'inorder',
  147. 'feedback' and 'adaptive'. If 'inorder' is given, URI is tried in
  148. the order appeared in the URI list. If 'feedback' is given, aria2
  149. uses download speed observed in the previous downloads and choose
  150. fastest server in the URI list. This also effectively skips dead
  151. mirrors. The observed download speed is a part of performance
  152. profile of servers mentioned in *--server-stat-of* and
  153. *--server-stat-if* options. If 'adaptive' is given, selects one of
  154. the best mirrors for the first and reserved connections. For
  155. supplementary ones, it returns mirrors which has not been tested
  156. yet, and if each of them has already been tested, returns mirrors
  157. which has to be tested again. Otherwise, it doesn't select anymore
  158. mirrors. Like 'feedback', it uses a performance profile of servers.
  159. Default: 'feedback'
  160. HTTP Specific Options
  161. ~~~~~~~~~~~~~~~~~~~~~
  162. *--ca-certificate*=FILE::
  163. Use the certificate authorities in FILE to verify the peers.
  164. The certificate file must be in PEM format and can contain multiple CA
  165. certificates.
  166. Use *--check-certificate* option to enable verification.
  167. *--certificate*=FILE::
  168. Use the client certificate in FILE.
  169. The certificate must be in PEM format.
  170. You may use *--private-key* option to specify the private key.
  171. *--check-certificate*[='true'|'false']::
  172. Verify the peer using certificates specified in *--ca-certificate* option.
  173. Default: 'true'
  174. *--http-auth-challenge*[='true'|'false']::
  175. Send HTTP authorization header only when it is requested by the
  176. server. If 'false' is set, then authorization header is always sent
  177. to the server. There is an exception: if username and password are
  178. embedded in URI, authorization header is always sent to the server
  179. regardless of this option. Default: 'false'
  180. *--http-auth-scheme*=SCHEME::
  181. Set HTTP authentication scheme.
  182. Currently, 'basic' is the only supported scheme.
  183. Default: 'basic'
  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. See also *--all-proxy* option.
  190. This affects all URLs.
  191. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  192. *--https-proxy*=PROXY::
  193. Use this proxy server for HTTPS. See also *--all-proxy* option.
  194. This affects all URLs.
  195. The 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. *--use-head*[='true'|'false']::
  219. Use HEAD method for the first request to the HTTP server.
  220. Default: 'true'
  221. *-U*, *--user-agent*=USER_AGENT::
  222. Set user agent for HTTP(S) downloads.
  223. FTP Specific Options
  224. ~~~~~~~~~~~~~~~~~~~~
  225. *--ftp-user*=USER::
  226. Set FTP user. This affects all URLs.
  227. Default: 'anonymous'
  228. *--ftp-passwd*=PASSWD::
  229. Set FTP password. This affects all URLs.
  230. Default: 'ARIA2USER@'
  231. *-p*, *--ftp-pasv*[='true'|'false']::
  232. Use the passive mode in FTP.
  233. If 'false' is given, the active mode will be used.
  234. Default: 'true'
  235. *--ftp-proxy*=PROXY::
  236. Use this proxy server for FTP. See also *--all-proxy* option.
  237. This affects all URLs.
  238. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  239. *--ftp-type*=TYPE::
  240. Set FTP transfer type. TYPE is either 'binary' or 'ascii'.
  241. Default: 'binary'
  242. *--ftp-reuse-connection*[='true'|'false']::
  243. Reuse connection in FTP.
  244. Default: 'true'
  245. BitTorrent/Metalink Options
  246. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  247. *--select-file*=INDEX...::
  248. Set file to download by specifying its index.
  249. You can find the file index using the *--show-files* option.
  250. Multiple indexes can be specified by using ",", for example: '3,6'.
  251. You can also use "-" to specify a range: '1-5'.
  252. "," and "-" can be used together: '1-5,8,9'.
  253. When used with the -M option, index may vary depending on the query
  254. (see *--metalink-** options).
  255. [NOTE]
  256. In multi file torrent, the adjacent files specified by this option may
  257. also be downloaded. This is by design, not a bug.
  258. A single piece may include several files or part of files, and aria2
  259. writes the piece to the appropriate files.
  260. *-S*, *--show-files*::
  261. Print file listing of .torrent or .metalink file and exit.
  262. In case of .torrent file, additional information
  263. (infohash, piece length, etc) is also printed.
  264. BitTorrent Specific Options
  265. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  266. *--bt-external-ip*=IPADDRESS::
  267. Specify the external IP address to report to a BitTorrent
  268. tracker. Although this function is named "external", it can accept
  269. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  270. *--bt-hash-check-seed*[='true'|'false']::
  271. If 'true' is given, after hash check using *--check-integrity* option and
  272. file is complete, continue to seed file. If you want to check file
  273. and download it only when it is damaged or incomplete, set this
  274. option to 'false'. This option has effect only on BitTorrent download.
  275. Default: 'true'
  276. *--bt-max-open-files*=NUM::
  277. Specify maximum number of files to open in each BitTorrent download.
  278. Default: '100'
  279. *--bt-max-peers*=NUM::
  280. Specify the maximum number of peers per torrent. '0' means
  281. unlimited. See also *--bt-request-peer-speed-limit* option.
  282. Default: '55'
  283. *--bt-min-crypto-level*='plain'|'arc4'::
  284. Set minimum level of encryption method.
  285. If several encryption methods are provided by a peer, aria2 chooses the lowest
  286. one which satisfies the given level.
  287. Default: 'plain'
  288. *--bt-require-crypto*='true'|'false'::
  289. If true is given, aria2 doesn't accept and establish connection with legacy
  290. BitTorrent handshake(\19BitTorrent protocol).
  291. Thus aria2 always uses Obfuscation handshake.
  292. Default: 'false'
  293. *--bt-request-peer-speed-limit*=SPEED::
  294. If the whole download speed of every torrent is lower than SPEED,
  295. aria2 temporarily increases the number of peers to try for more
  296. download speed. Configuring this option with your preferred download
  297. speed can increase your download speed in some cases.
  298. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  299. Default: '50K'
  300. *--bt-seed-unverified*[='true'|'false']::
  301. Seed previously downloaded files without verifying piece hashes.
  302. Default: 'false'
  303. *--bt-tracker-interval*=SEC::
  304. Set the interval in seconds between tracker requests. This
  305. completely overrides interval value and aria2 just uses this value
  306. and ignores the min interval and interval value in the response of
  307. tracker. If '0' is set, aria2 determines interval based on the
  308. response of tracker and the download progress. Default: '0'
  309. *--dht-entry-point*=HOST:PORT::
  310. Set host and port as an entry point to DHT network.
  311. *--dht-file-path*=PATH::
  312. Change the DHT routing table file to PATH.
  313. Default: '$HOME/.aria2/dht.dat'
  314. *--dht-listen-port*=PORT...::
  315. Set UDP listening port for DHT.
  316. Multiple ports can be specified by using ",", for example: '6881,6885'.
  317. You can also use "-" to specify a range: '6881-6999'. "," and "-" can be used
  318. together.
  319. Default: '6881-6999'
  320. [NOTE]
  321. Make sure that the specified ports are open for incoming UDP traffic.
  322. *--enable-dht*[='true'|'false']::
  323. Enable DHT functionality. If a private flag is set in a torrent, aria2
  324. doesn't use DHT for that download even if 'true' is given.
  325. Default: 'false'
  326. *--enable-peer-exchange*[='true'|'false']::
  327. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  328. feature is disabled for that download even if 'true' is given.
  329. Default: 'true'
  330. *--follow-torrent*='true'|'false'|'mem'::
  331. If 'true' or 'mem' is specified, when a file whose suffix is ".torrent" or content
  332. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  333. file and downloads files mentioned in it.
  334. If 'mem' is specified, a torrent file is not written to the disk, but is just
  335. kept in memory.
  336. If 'false' is specified, the action mentioned above is not taken.
  337. Default: 'true'
  338. *-O*, *--index-out*=INDEX=PATH::
  339. Set file path for file with index=INDEX. You can find the file index
  340. using the *--show-files* option. PATH is a relative path to the
  341. path specified in *--dir* option. You can use this option multiple
  342. times. Using this option, you can specify the output filenames of
  343. BitTorrent downloads.
  344. *--listen-port*=PORT...::
  345. Set TCP port number for BitTorrent downloads.
  346. Multiple ports can be specified by using ",", for example: '6881,6885'.
  347. You can also use "-" to specify a range: '6881-6999'.
  348. "," and "-" can be used together: '6881-6889,6999'.
  349. Default: '6881-6999'
  350. [NOTE]
  351. Make sure that the specified ports are open for incoming TCP traffic.
  352. *--max-overall-upload-limit*=SPEED::
  353. Set max overall upload speed in bytes/sec.
  354. '0' means unrestricted.
  355. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  356. To limit the upload speed per torrent, use *--max-upload-limit* option.
  357. Default: '0'
  358. *-u*, *--max-upload-limit*=SPEED::
  359. Set max upload speed per each torrent in bytes/sec.
  360. '0' means unrestricted.
  361. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  362. To limit the overall upload speed, use *--max-overall-upload-limit* option.
  363. Default: '0'
  364. *--peer-id-prefix*=PEERI_ID_PREFIX::
  365. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  366. If more than 20 bytes are specified, only first 20 bytes are used.
  367. If less than 20 bytes are specified, the random alphabet characters are
  368. added to make it's length 20 bytes.
  369. Default: '-aria2-'
  370. *--seed-ratio*=RATIO::
  371. Specify share ratio. Seed completed torrents until share ratio reaches
  372. RATIO.
  373. You are strongly encouraged to specify equals or more than '1.0' here.
  374. Specify '0.0' if you intend to do seeding regardless of share ratio.
  375. If *--seed-time* option is specified along with this option, seeding ends when
  376. at least one of the conditions is satisfied.
  377. Default: '1.0'
  378. *--seed-time*=MINUTES::
  379. Specify seeding time in minutes. Also see the *--seed-ratio* option.
  380. *-T*, *--torrent-file*=TORRENT_FILE::
  381. The path to the .torrent file.
  382. You are not required to use this option because you can specify a torrent file without -T.
  383. Metalink Specific Options
  384. ~~~~~~~~~~~~~~~~~~~~~~~~~
  385. *--follow-metalink*='true'|'false'|'mem'::
  386. If 'true' or 'mem' is specified, when a file whose suffix is ".metaink" or content
  387. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  388. file and downloads files mentioned in it.
  389. If 'mem' is specified, a metalink file is not written to the disk, but is just
  390. kept in memory.
  391. If 'false' is specified, the action mentioned above is not taken.
  392. Default: 'true'
  393. *-M*, *--metalink-file*=METALINK_FILE::
  394. The file path to .metalink file. You are not required to use this option because you can
  395. specify a metalink file without -M.
  396. *-C*, *--metalink-servers*=NUM_SERVERS::
  397. The number of servers to connect to simultaneously.
  398. Some Metalinks regulate the number of servers to connect.
  399. aria2 strictly respects them.
  400. This means that if Metalink defines the maxconnections attribute lower
  401. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  402. instead of NUM_SERVERS.
  403. See also *-s* and *-j* options.
  404. Default: '5'
  405. *--metalink-language*=LANGUAGE::
  406. The language of the file to download.
  407. *--metalink-location*=LOCATION[,...]::
  408. The location of the preferred server.
  409. A comma-delimited list of locations is acceptable, for example, 'JP,US'.
  410. *--metalink-os*=OS::
  411. The operating system of the file to download.
  412. *--metalink-version*=VERSION::
  413. The version of the file to download.
  414. *--metalink-preferred-protocol*=PROTO::
  415. Specify preferred protocol.
  416. The possible values are 'http', 'https', 'ftp' and 'none'.
  417. Specify 'none' to disable this feature.
  418. Default: 'none'
  419. *--metalink-enable-unique-protocol*='true'|'false'::
  420. If 'true' is given and several protocols are available for a mirror in a
  421. metalink file, aria2 uses one of them.
  422. Use *--metalink-preferred-protocol* option to specify the preference of
  423. protocol.
  424. Default: 'true'
  425. XML-RPC Options
  426. ~~~~~~~~~~~~~~~
  427. *--enable-xml-rpc*[='true'|'false']::
  428. Enable XML-RPC server. It is strongly recommended to set username
  429. and password using *--xml-rpc-user* and *--xml-rpc-passwd*
  430. option. See also *--xml-rpc-listen-port* option. Default: 'false'
  431. *--xml-rpc-listen-port*=PORT::
  432. Specify a port number for XML-RPC server to listen to. Possible
  433. Values: '1024'-'65535' Default: '6800'
  434. *--xml-rpc-passwd*=PASSWD::
  435. Set XML-RPC password.
  436. *--xml-rpc-user*=USER::
  437. Set XML-RPC user.
  438. Advanced Options
  439. ~~~~~~~~~~~~~~~~
  440. *--allow-overwrite*='true'|'false'::
  441. If 'false' is given, aria2 doesn't download a file which already exists but
  442. the corresponding .aria2 file doesn't exist.
  443. In HTTP(S)/FTP download, if *--auto-file-renaming*='true' then,
  444. file name will be renamed. See *--auto-file-renaming* for details.
  445. Default: 'false'
  446. *--allow-piece-length-change*='true'|'false'::
  447. If false is given, aria2 aborts download when a piece length is different
  448. from one in a control file.
  449. If true is given, you can proceed but some download progress will be lost.
  450. Default: 'false'
  451. *--async-dns*[='true'|'false']::
  452. Enable asynchronous DNS.
  453. Default: 'true'
  454. *--auto-file-renaming*[='true'|'false']::
  455. Rename file name if the same file already exists.
  456. This option works only in HTTP(S)/FTP download.
  457. The new file name has a dot and a number(1..9999) appended.
  458. Default: 'true'
  459. *--auto-save-interval*=SEC::
  460. Save a control file(*.aria2) every SEC seconds.
  461. If '0' is given, a control file is not saved during download. aria2 saves a
  462. control file when it stops regardless of the value.
  463. The possible values are between '0' to '600'.
  464. Default: '60'
  465. *--conf-path*=PATH::
  466. Change the configuration file path to PATH.
  467. Default: '$HOME/.aria2/aria2.conf'
  468. *-D*, *--daemon*::
  469. Run as daemon.
  470. *--enable-direct-io*[='true'|'false']::
  471. Enable directI/O, which lowers cpu usage while allocating/checking files.
  472. Turn off if you encounter any error.
  473. Default: 'true'
  474. *--event-poll*=POLL::
  475. Specify the method for polling events. The possible Values are
  476. 'epoll' and 'select'. If you use recent Linux that has epoll, then
  477. the default value is 'epoll'. Otherwise, the default value is
  478. 'select'.
  479. *--file-allocation*=METHOD::
  480. Specify file allocation method. METHOD is either 'none' or 'prealloc'.
  481. 'none' doesn't pre-allocate file space. 'prealloc' pre-allocates file space
  482. before download begins. This may take some time depending on the size of the
  483. file.
  484. If you are using newer file systems such as ext4
  485. (with extents support), btrfs or xfs, 'falloc' is
  486. your best choice. It allocates large(few GiB)
  487. files almost instantly. Don't use 'falloc' with
  488. legacy file systems such as ext3 because it takes
  489. almost same time as 'prealloc' and it blocks aria2
  490. entirely until allocation finishes. 'falloc' may
  491. not be available if your system doesn't have
  492. *posix_fallocate*() function.
  493. Default: 'prealloc'
  494. *--log-level*=LEVEL::
  495. Set log level to output.
  496. LEVEL is either 'debug', 'info', 'notice', 'warn' or 'error'.
  497. Default: 'debug'
  498. *--summary-interval*=SEC::
  499. Set interval in seconds to output download progress summary.
  500. Setting '0' suppresses the output.
  501. Default: '60'
  502. [NOTE]
  503. In multi file torrent downloads, the files adjacent forward to the specified files
  504. are also allocated if they share the same piece.
  505. *-Z*, *--force-sequential*[='true'|'false']::
  506. Fetch URIs in the command-line sequentially and download each URI in a
  507. separate session, like the usual command-line download utilities.
  508. Default: 'false'
  509. *--max-overall-download-limit*=SPEED::
  510. Set max overall download speed in bytes/sec. '0' means
  511. unrestricted. You can append 'K' or 'M'(1K = 1024, 1M = 1024K). To
  512. limit the download speed per download, use *--max-download-limit*
  513. option. Default: '0'
  514. *--max-download-limit*=SPEED::
  515. Set max download speed per each download in bytes/sec. '0' means
  516. unrestricted. You can append 'K' or 'M'(1K = 1024, 1M = 1024K). To
  517. limit the overall download speed, use *--max-overall-download-limit*
  518. option. Default: '0'
  519. *--no-conf*::
  520. Disable loading aria2.conf file.
  521. *--no-file-allocation-limit*=SIZE::
  522. No file allocation is made for files whose size is smaller than SIZE.
  523. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  524. Default: '5M'
  525. *-P*, *--parameterized-uri*[='true'|'false']::
  526. Enable parameterized URI support.
  527. You can specify set of parts: 'http://{sv1,sv2,sv3}/foo.iso'.
  528. Also you can specify numeric sequences with step counter:
  529. '\http://host/image[000-100:2].img'.
  530. A step counter can be omitted.
  531. If all URIs do not point to the same file, such as the second example above,
  532. -Z option is required.
  533. Default: 'false'
  534. *-q*, *--quiet*[='true'|'false']::
  535. Make aria2 quiet (no console output).
  536. Default: 'false'
  537. *--realtime-chunk-checksum*='true'|'false'::
  538. Validate chunk of data by calculating checksum while downloading a file if
  539. chunk checksums are provided.
  540. Default: 'true'
  541. *--stop*=SEC::
  542. Stop application after SEC seconds has passed.
  543. If '0' is given, this feature is disabled.
  544. Default: '0'
  545. *-v*, *--version*::
  546. Print the version number, copyright and the configuration information and
  547. exit.
  548. Options That Take An Optional Argument
  549. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  550. The options that have its argument surrounded by square brackets([])
  551. take an optional argument. Usually omiting the argument is evaluated to 'true'.
  552. If you use short form of these options(such as '-V') and give
  553. an argument, then the option name and its argument should be concatenated(e.g.
  554. '-Vfalse'). If any spaces are inserted between the option name and the argument,
  555. the argument will be treated as URI and usually this is not what you expect.
  556. URL, TORRENT_FILE, METALINK_FILE
  557. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  558. You can specify multiple URLs in command-line.
  559. Unless you specify *-Z* option, all URLs must point to the same file or downloading will fail.
  560. You can also specify arbitrary number of torrent files and metalink files
  561. stored on a local drive. Please note that they are always treated as a
  562. separate download.
  563. You can specify both torrent file with -T option and URLs. By doing this,
  564. you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time,
  565. while the data from HTTP(S)/FTP are uploaded to the torrent swarm. Note that
  566. only single file torrent can be integrated with HTTP(S)/FTP.
  567. [NOTE]
  568. Make sure that URL is quoted with single(') or double(") quotation if it
  569. contains "&" or any characters that have special meaning in shell.
  570. Resuming Download
  571. ~~~~~~~~~~~~~~~~~
  572. Usually, you can resume transfer by just issuing same command(aria2c
  573. URL) if the previous transfer is made by aria2.
  574. If the previous transfer is made by a browser or wget like sequential
  575. download manager, then use -c option to continue the transfer(aria2c
  576. *-c* URL).
  577. EXIT STATUS
  578. -----------
  579. Because aria2 can handle multiple downloads at once, it encounters
  580. lots of errors in a session. aria2 returns the following exit status
  581. based on the last error encountered.
  582. *0*::
  583. If all downloads are successful.
  584. *1*::
  585. If an unknown error occurs.
  586. *2*::
  587. If time out occurs.
  588. *3*::
  589. If a resource is not found.
  590. *4*::
  591. If aria2 sees the specfied number of "resource not found" error.
  592. See *--max-file-not-found* option).
  593. *5*::
  594. If a download aborts because download speed is too slow.
  595. See *--lowest-speed-limit* option)
  596. *6*::
  597. If network problem occurs.
  598. *7*::
  599. If there are unfinished downloads. This error is only reported if
  600. all finished downloads are successful and there are unfinished
  601. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  602. or sending TERM or INT signal.
  603. [NOTE]
  604. An error occurred in a finished download will not be reported
  605. as exit status.
  606. ENVIRONMENT
  607. -----------
  608. aria2 recognizes the following environment variables.
  609. http_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  610. Specify proxy server for use in HTTP.
  611. Overrides http-proxy value in configuration file.
  612. The command-line option *--http-proxy* overrides this value.
  613. https_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  614. Specify proxy server for use in HTTPS.
  615. Overrides https-proxy value in configuration file.
  616. The command-line option *--https-proxy* overrides this value.
  617. ftp_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  618. Specify proxy server for use in FTP.
  619. Overrides ftp-proxy value in configuration file.
  620. The command-line option *--ftp-proxy* overrides this value.
  621. all_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  622. Specify proxy server for use if no protocol-specific proxy is specified.
  623. Overrides all-proxy value in configuration file.
  624. The command-line option *--all-proxy* overrides this value.
  625. no_proxy [DOMAIN,...]::
  626. Specify comma-separated hostname or domains to which proxy should not be used.
  627. Overrides no-proxy value in configuration file.
  628. The command-line option *--no-proxy* overrides this value.
  629. FILES
  630. -----
  631. aria2.conf
  632. ~~~~~~~~~~
  633. By default, aria2 parses '$HOME/.aria2/aria2.conf' as a configuraiton
  634. file. You can specify the path to configuration file using
  635. *--conf-path* option. If you don't want to use the configuraitonf
  636. file, use *--no-conf* option.
  637. The configuration file is a text file and has 1 option per each
  638. line. In each line, you can specify name-value pair in the format:
  639. NAME=VALUE, where name is the long command-line option name without
  640. "--" prefix. You can use same syntax for the command-line option. The
  641. lines beginning "#" are treated as comments.
  642. --------------------------------------
  643. # sample configuration file for aria2c
  644. listen-port=60000
  645. dht-listen-port=60000
  646. seed-ratio=1.0
  647. max-upload-limit=50K
  648. ftp-pasv=true
  649. --------------------------------------
  650. dht.dat
  651. ~~~~~~~~
  652. By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.
  653. Control File
  654. ~~~~~~~~~~~~
  655. aria2 uses a control file to track the progress of a download. A
  656. control file is placed in the same directory as the downloading file
  657. and its filename is the filename of downloading file with ".aria2"
  658. appended. For example, if you are downloading file.zip, then the
  659. control file should be file.zip.aria2. (There is a exception for this
  660. naming convention. If you are downloading a multi torrent, its
  661. control file is the "top directory" name of the torrent with ".aria2"
  662. appended. The "top directory" name is a value of "name" key in "info"
  663. directory in a torrent file.)
  664. Usually a control file is deleted once download completed. If aria2
  665. decides that download cannot be resumed(for example, when downloading
  666. a file from a HTTP server which doesn't support resume), a control
  667. file is not created.
  668. Normally if you lose a control file, you cannot resume download. But
  669. if you have a torrent or metalink with chunk checksums for the file,
  670. you can resume the download without a control file by giving -V option
  671. to aria2c in command-line.
  672. Input File
  673. ~~~~~~~~~~
  674. The input file can contain a list of URIs for aria2 to download. You
  675. can specify multiple URIs for a single entity: separate URIs on a
  676. single line using the TAB character.
  677. Each line is treated as if it is provided in command-line argument.
  678. Therefore they are affected by *-Z* and *-P* options.
  679. Additionally, the following options can be specified after each line
  680. of URIs. These optional lines must start with white space(s).
  681. * dir
  682. * check-integrity
  683. * continue
  684. * all-proxy
  685. * connect-timeout
  686. * dry-run
  687. * lowest-speed-limit
  688. * max-file-not-found
  689. * max-tries
  690. * no-proxy
  691. * out
  692. * proxy-method
  693. * remote-time
  694. * retry-wait
  695. * split
  696. * timeout
  697. * http-auth-challenge
  698. * http-user
  699. * http-passwd
  700. * http-proxy
  701. * https-proxy
  702. * referer
  703. * enable-http-keep-alive
  704. * enable-http-pipelining
  705. * header
  706. * use-head
  707. * user-agent
  708. * ftp-user
  709. * ftp-passwd
  710. * ftp-pasv
  711. * ftp-proxy
  712. * ftp-type
  713. * ftp-reuse-connection
  714. * no-netrc
  715. * select-file
  716. * bt-external-ip
  717. * bt-hash-check-seed
  718. * bt-max-open-files
  719. * bt-max-peers
  720. * bt-min-crypto-level
  721. * bt-require-crypto
  722. * bt-request-peer-speed-limit
  723. * bt-seed-unverified
  724. * bt-tracker-interval
  725. * enable-peer-exchange
  726. * follow-torrent
  727. * index-out
  728. * max-upload-limit
  729. * peer-id-prefix
  730. * seed-ratio
  731. * seed-time
  732. * follow-metalink
  733. * metalink-servers
  734. * metalink-language
  735. * metalink-location
  736. * metalink-os
  737. * metalink-version
  738. * metalink-preferred-protocol
  739. * metalink-enable-unique-protocol
  740. * allow-overwrite
  741. * allow-piece-length-change
  742. * async-dns
  743. * auto-file-renaming
  744. * file-allocation
  745. * max-download-limit
  746. * no-file-allocation-limit
  747. * parameterized-uri
  748. * realtime-chunk-checksum
  749. These options have exactly same meaning of the ones in the
  750. command-line options, but it just applies to the URIs it belongs to.
  751. For example, the content of uri.txt is
  752. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  753. http://server/file.iso http://mirror/file.iso
  754. dir=/iso_images
  755. out=file.img
  756. http://foo/bar
  757. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  758. If aria2 is executed with *-i* uri.txt *-d* /tmp options, then
  759. 'file.iso' is saved as '/iso_images/file.img' and it is downloaded
  760. from \http://server/file.iso and \http://mirror/file.iso. The file
  761. 'bar' is downloaded from \http://foo/bar and saved as '/tmp/bar'.
  762. In some cases, *out* parameter has no effect. See note of *--out*
  763. option for the restrictions.
  764. Server Performance Profile
  765. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  766. This section describes the format of server performance profile. The
  767. file is plain text and each line has several NAME=VALUE pair,
  768. delimited by comma. Currently following NAMEs are recognized:
  769. host::
  770. Hostname of the server. Required.
  771. protocol::
  772. Protocol for this profile, such as ftp, http. Required.
  773. dl_speed::
  774. The average download speed observed in the previous download in
  775. bytes per sec. Required.
  776. sc_avg_speed::
  777. The average download speed observed in the previous download in
  778. bytes per sec. This value is only updated if the download is done in
  779. single connection environment and only used by
  780. AdaptiveURISelector. Optional.
  781. mc_avg_speed::
  782. The average download speed observed in the previous download in
  783. bytes per sec. This value is only updated if the download is done in
  784. multi connection environment and only used by
  785. AdaptiveURISelector. Optional.
  786. counter::
  787. How many times the server is used. Currently this value is only used
  788. by AdaptiveURISelector. Optional.
  789. last_updated::
  790. Last contact time in GMT with this server, specified in the seconds
  791. from the Epoch. Required.
  792. status::
  793. ERROR is set when server cannot be reached or out-of-service or
  794. timeout occurred. Otherwise, OK is set.
  795. Those fields must exist in one line. The order of the fields is not
  796. significant. You can put pairs other than the above; they are simply
  797. ignored.
  798. An example follows:
  799. --------------------------------------------------------------------------------
  800. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  801. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  802. --------------------------------------------------------------------------------
  803. EXAMPLE
  804. -------
  805. HTTP/FTP Segmented Download
  806. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  807. Download a file
  808. ^^^^^^^^^^^^^^^
  809. --------------------------------
  810. aria2c "http://host/file.zip"
  811. --------------------------------
  812. [NOTE]
  813. aria2 uses 5 connections to download 1 file by default.
  814. Download a file using 1 connection
  815. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  816. ----------------------------------
  817. aria2c -s1 "http://host/file.zip"
  818. ----------------------------------
  819. [NOTE]
  820. aria2 uses 5 connections to download 1 file by default.
  821. -s1 limits the number of connections to just 1.
  822. [NOTE]
  823. 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.
  824. Download a file from 2 different HTTP servers
  825. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  826. ------------------------------------------------------
  827. aria2c "http://host/file.zip" "http://mirror/file.zip"
  828. ------------------------------------------------------
  829. Download a file from HTTP and FTP servers
  830. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  831. -----------------------------------------------------
  832. aria2c "http://host1/file.zip" "ftp://host2/file.zip"
  833. -----------------------------------------------------
  834. Download files listed in a text file concurrently
  835. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  836. ------------------------
  837. aria2c -ifiles.txt -j2
  838. ------------------------
  839. [NOTE]
  840. -j option specifies the number of parallel downloads.
  841. Using proxy
  842. ^^^^^^^^^^^
  843. For HTTP:
  844. ----------------------------------------------------------
  845. aria2c --http-proxy="http://proxy:8080" "http://host/file"
  846. ----------------------------------------------------------
  847. For FTP:
  848. --------------------------------------------------------
  849. aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"
  850. --------------------------------------------------------
  851. [NOTE]
  852. See *--http-proxy*, *--https-proxy*, *--ftp-proxy* and *--all-proxy* for
  853. details.
  854. You can specify proxy in the environment variables. See *ENVIRONMENT* section.
  855. Proxy with authorization
  856. ^^^^^^^^^^^^^^^^^^^^^^^^
  857. ----------------------------------------------------------------------------
  858. aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"
  859. ----------------------------------------------------------------------------
  860. Metalink Download
  861. ~~~~~~~~~~~~~~~~~
  862. Download files with remote Metalink
  863. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  864. --------------------------------------------------------
  865. aria2c --follow-metalink=mem "http://host/file.metalink"
  866. --------------------------------------------------------
  867. Download using a local metalink file
  868. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  869. ----------------------------------------------------------
  870. aria2c -p --lowest-speed-limit=4000 file.metalink
  871. ----------------------------------------------------------
  872. [NOTE]
  873. To pause a download, press Ctrl-C.
  874. You can resume the transfer by running aria2c with the same argument in the same
  875. directory.
  876. Download several local metalink files
  877. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  878. ----------------------------------------
  879. aria2c -j2 file1.metalink file2.metalink
  880. ----------------------------------------
  881. Download only selected files using index
  882. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  883. -------------------------------------------
  884. aria2c --select-file=1-4,8 file.metalink
  885. -------------------------------------------
  886. [NOTE]
  887. The index is printed to the console using -S option.
  888. Download a file using a local .metalink file with user preference
  889. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  890. ------------------------------------------------------------------------------
  891. aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink
  892. ------------------------------------------------------------------------------
  893. BitTorrent Download
  894. ~~~~~~~~~~~~~~~~~~~
  895. Download files from remote BitTorrent file
  896. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  897. ------------------------------------------------------
  898. aria2c --follow-torrent=mem "http://host/file.torrent"
  899. ------------------------------------------------------
  900. Download using a local torrent file
  901. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  902. ---------------------------------------------
  903. aria2c --max-upload-limit=40K file.torrent
  904. ---------------------------------------------
  905. [NOTE]
  906. --max-upload-limit specifies the max of upload rate.
  907. [NOTE]
  908. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory.
  909. Download 2 torrents
  910. ^^^^^^^^^^^^^^^^^^^
  911. --------------------------------------
  912. aria2c -j2 file1.torrent file2.torrent
  913. --------------------------------------
  914. Download a file using torrent and HTTP/FTP server
  915. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  916. ------------------------------------------------------------
  917. aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"
  918. ------------------------------------------------------------
  919. [NOTE]
  920. Downloading multi file torrent with HTTP/FTP is not supported.
  921. Download only selected files using index(usually called "selectable download")
  922. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  923. ---------------------------------------
  924. aria2c --select-file=1-4,8 file.torrent
  925. ---------------------------------------
  926. [NOTE]
  927. The index is printed to the console using -S option.
  928. Specify output filename
  929. ^^^^^^^^^^^^^^^^^^^^^^^
  930. To specify output filename for BitTorrent downloads, you need to know
  931. the index of file in torrent file using *-S* option. For example, the
  932. output looks like this:
  933. --------------------------
  934. idx|path/length
  935. ===+======================
  936. 1|dist/base-2.6.18.iso
  937. |99.9MiB
  938. ---+----------------------
  939. 2|dist/driver-2.6.18.iso
  940. |169.0MiB
  941. ---+----------------------
  942. --------------------------
  943. To save 'dist/base-2.6.18.iso' in '/tmp/mydir/base.iso' and
  944. 'dist/driver-2.6.18.iso' in '/tmp/dir/driver.iso', use the following
  945. command:
  946. -----------------------------------------------------------------------------------------
  947. aria2c --dir=/tmp --index-out=1=mydir/base.iso --index-out=2=dir/driver.iso file.torrent
  948. -----------------------------------------------------------------------------------------
  949. Change the listening port for incoming peer
  950. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  951. ---------------------------------------------------
  952. aria2c --listen-port=7000-7001,8000 file.torrent
  953. ---------------------------------------------------
  954. [NOTE]
  955. Since aria2 doesn't configure firewall or router for port forwarding, it's up
  956. to you to do it manually.
  957. Specify the condition to stop program after torrent download finished
  958. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  959. -------------------------------------------------------
  960. aria2c --seed-time=120 --seed-ratio=1.0 file.torrent
  961. -------------------------------------------------------
  962. [NOTE]
  963. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.
  964. Throttle upload speed
  965. ^^^^^^^^^^^^^^^^^^^^^
  966. ----------------------------------------------
  967. aria2c --max-upload-limit=100K file.torrent
  968. ----------------------------------------------
  969. Enable DHT
  970. ^^^^^^^^^^
  971. ---------------------------------------------------------
  972. aria2c --enable-dht --dht-listen-port=6881 file.torrent
  973. ---------------------------------------------------------
  974. [NOTE]
  975. DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  976. forwarding, it's up to you to do it manually.
  977. More advanced HTTP features
  978. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  979. Load cookies
  980. ^^^^^^^^^^^^
  981. --------------------------------------------------------
  982. aria2c --load-cookies=cookies.txt "http://host/file.zip"
  983. --------------------------------------------------------
  984. [NOTE]
  985. You can use Firefox/Mozilla's cookie file without modification.
  986. Resume download started by web browsers or another programs
  987. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  988. -------------------------------------------------------
  989. aria2c -c -s2 "http://host/partiallydownloadedfile.zip"
  990. -------------------------------------------------------
  991. Client certificate authorization for SSL/TLS
  992. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  993. ------------------------------------------------------------------------------------------
  994. aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file
  995. ------------------------------------------------------------------------------------------
  996. [NOTE]
  997. The file specified in *--private-key* must be decrypted. The behavior when
  998. encrypted one is given is undefined.
  999. Verify peer in SSL/TLS using given CA certificates
  1000. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1001. ------------------------------------------------------------------------------------------
  1002. aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file
  1003. ------------------------------------------------------------------------------------------
  1004. And more advanced features
  1005. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1006. Throttle download speed
  1007. ^^^^^^^^^^^^^^^^^^^^^^^
  1008. -------------------------------------------------
  1009. aria2c --max-download-limit=100K file.metalink
  1010. -------------------------------------------------
  1011. Repair a damaged download using -V option
  1012. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1013. -----------------------
  1014. aria2c -V file.metalink
  1015. -----------------------
  1016. [NOTE]
  1017. This option is only available used with BitTorrent or metalink with chunk
  1018. checksums.
  1019. Drop connection if download speed is lower than specified value
  1020. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1021. ------------------------------------------------
  1022. aria2c --lowest-speed-limit=10K file.metalink
  1023. ------------------------------------------------
  1024. Parameterized URI support
  1025. ^^^^^^^^^^^^^^^^^^^^^^^^^
  1026. You can specify set of parts:
  1027. -----------------------------------------------
  1028. aria2c -P "http://{host1,host2,host3}/file.iso"
  1029. -----------------------------------------------
  1030. You can specify numeric sequence:
  1031. ---------------------------------------------
  1032. aria2c -Z -P "http://host/image[000-100].png"
  1033. ---------------------------------------------
  1034. [NOTE]
  1035. -Z option is required if the all URIs don't point to the same file, such as the above example.
  1036. You can specify step counter:
  1037. -------------------------------------------
  1038. aria2c -Z -P "http://host/image[A-Z:2].png"
  1039. -------------------------------------------
  1040. Parallel downloads of arbitrary number of URL,metalink,torrent
  1041. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1042. --------------------------------------------------------------
  1043. aria2c -j3 -Z "http://host/file1" file2.torrent file3.metalink
  1044. --------------------------------------------------------------
  1045. BitTorrent Encryption
  1046. ^^^^^^^^^^^^^^^^^^^^^
  1047. Encrypt whole payload using ARC4:
  1048. -------------------------------------------------------------------------
  1049. aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent
  1050. -------------------------------------------------------------------------
  1051. SEE ALSO
  1052. --------
  1053. Project Web Site: http://aria2.sourceforge.net/
  1054. aria2 Wiki: http://apps.sourceforge.net/trac/aria2/wiki
  1055. Metalink Homepage: http://www.metalinker.org/
  1056. COPYRIGHT
  1057. ---------
  1058. Copyright (C) 2006, 2009 Tatsuhiro Tsujikawa
  1059. This program is free software; you can redistribute it and/or modify
  1060. it under the terms of the GNU General Public License as published by
  1061. the Free Software Foundation; either version 2 of the License, or
  1062. (at your option) any later version.
  1063. This program is distributed in the hope that it will be useful,
  1064. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1065. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1066. GNU General Public License for more details.
  1067. You should have received a copy of the GNU General Public License
  1068. along with this program; if not, write to the Free Software
  1069. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  1070. In addition, as a special exception, the copyright holders give
  1071. permission to link the code of portions of this program with the
  1072. OpenSSL library under certain conditions as described in each
  1073. individual source file, and distribute linked combinations
  1074. including the two.
  1075. You must obey the GNU General Public License in all respects
  1076. for all of the code used other than OpenSSL. If you modify
  1077. file(s) with this exception, you may extend this exception to your
  1078. version of the file(s), but you are not obligated to do so. If you
  1079. do not wish to do so, delete this exception statement from your
  1080. version. If you delete this exception statement from all source
  1081. files in the program, then also delete it here.