aria2c.1.html 90 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="generator" content="AsciiDoc 8.4.4" />
  7. <title>ARIA2C(1)</title>
  8. <style type="text/css">
  9. /* Debug borders */
  10. p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
  11. /*
  12. border: 1px solid red;
  13. */
  14. }
  15. body {
  16. margin: 1em 5% 1em 5%;
  17. }
  18. a {
  19. color: blue;
  20. text-decoration: underline;
  21. }
  22. a:visited {
  23. color: fuchsia;
  24. }
  25. em {
  26. font-style: italic;
  27. color: navy;
  28. }
  29. strong {
  30. font-weight: bold;
  31. color: #083194;
  32. }
  33. tt {
  34. color: navy;
  35. }
  36. h1, h2, h3, h4, h5, h6 {
  37. color: #527bbd;
  38. font-family: sans-serif;
  39. margin-top: 1.2em;
  40. margin-bottom: 0.5em;
  41. line-height: 1.3;
  42. }
  43. h1, h2, h3 {
  44. border-bottom: 2px solid silver;
  45. }
  46. h2 {
  47. padding-top: 0.5em;
  48. }
  49. h3 {
  50. float: left;
  51. }
  52. h3 + * {
  53. clear: left;
  54. }
  55. div.sectionbody {
  56. font-family: serif;
  57. margin-left: 0;
  58. }
  59. hr {
  60. border: 1px solid silver;
  61. }
  62. p {
  63. margin-top: 0.5em;
  64. margin-bottom: 0.5em;
  65. }
  66. ul, ol, li > p {
  67. margin-top: 0;
  68. }
  69. pre {
  70. padding: 0;
  71. margin: 0;
  72. }
  73. span#author {
  74. color: #527bbd;
  75. font-family: sans-serif;
  76. font-weight: bold;
  77. font-size: 1.1em;
  78. }
  79. span#email {
  80. }
  81. span#revision {
  82. font-family: sans-serif;
  83. }
  84. div#footer {
  85. font-family: sans-serif;
  86. font-size: small;
  87. border-top: 2px solid silver;
  88. padding-top: 0.5em;
  89. margin-top: 4.0em;
  90. }
  91. div#footer-text {
  92. float: left;
  93. padding-bottom: 0.5em;
  94. }
  95. div#footer-badges {
  96. float: right;
  97. padding-bottom: 0.5em;
  98. }
  99. div#preamble {
  100. margin-top: 1.5em;
  101. margin-bottom: 1.5em;
  102. }
  103. div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
  104. div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
  105. div.admonitionblock {
  106. margin-top: 1.5em;
  107. margin-bottom: 1.5em;
  108. }
  109. div.admonitionblock {
  110. margin-top: 2.5em;
  111. margin-bottom: 2.5em;
  112. }
  113. div.content { /* Block element content. */
  114. padding: 0;
  115. }
  116. /* Block element titles. */
  117. div.title, caption.title {
  118. color: #527bbd;
  119. font-family: sans-serif;
  120. font-weight: bold;
  121. text-align: left;
  122. margin-top: 1.0em;
  123. margin-bottom: 0.5em;
  124. }
  125. div.title + * {
  126. margin-top: 0;
  127. }
  128. td div.title:first-child {
  129. margin-top: 0.0em;
  130. }
  131. div.content div.title:first-child {
  132. margin-top: 0.0em;
  133. }
  134. div.content + div.title {
  135. margin-top: 0.0em;
  136. }
  137. div.sidebarblock > div.content {
  138. background: #ffffee;
  139. border: 1px solid silver;
  140. padding: 0.5em;
  141. }
  142. div.listingblock > div.content {
  143. border: 1px solid silver;
  144. background: #f4f4f4;
  145. padding: 0.5em;
  146. }
  147. div.quoteblock {
  148. padding-left: 2.0em;
  149. margin-right: 10%;
  150. }
  151. div.quoteblock > div.attribution {
  152. padding-top: 0.5em;
  153. text-align: right;
  154. }
  155. div.verseblock {
  156. padding-left: 2.0em;
  157. margin-right: 10%;
  158. }
  159. div.verseblock > div.content {
  160. white-space: pre;
  161. }
  162. div.verseblock > div.attribution {
  163. padding-top: 0.75em;
  164. text-align: left;
  165. }
  166. /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
  167. div.verseblock + div.attribution {
  168. text-align: left;
  169. }
  170. div.admonitionblock .icon {
  171. vertical-align: top;
  172. font-size: 1.1em;
  173. font-weight: bold;
  174. text-decoration: underline;
  175. color: #527bbd;
  176. padding-right: 0.5em;
  177. }
  178. div.admonitionblock td.content {
  179. padding-left: 0.5em;
  180. border-left: 2px solid silver;
  181. }
  182. div.exampleblock > div.content {
  183. border-left: 2px solid silver;
  184. padding: 0.5em;
  185. }
  186. div.imageblock div.content { padding-left: 0; }
  187. div.imageblock img { border: 1px solid silver; }
  188. span.image img { border-style: none; }
  189. dl {
  190. margin-top: 0.8em;
  191. margin-bottom: 0.8em;
  192. }
  193. dt {
  194. margin-top: 0.5em;
  195. margin-bottom: 0;
  196. font-style: normal;
  197. color: navy;
  198. }
  199. dd > *:first-child {
  200. margin-top: 0.1em;
  201. }
  202. ul, ol {
  203. list-style-position: outside;
  204. }
  205. ol.arabic {
  206. list-style-type: decimal;
  207. }
  208. ol.loweralpha {
  209. list-style-type: lower-alpha;
  210. }
  211. ol.upperalpha {
  212. list-style-type: upper-alpha;
  213. }
  214. ol.lowerroman {
  215. list-style-type: lower-roman;
  216. }
  217. ol.upperroman {
  218. list-style-type: upper-roman;
  219. }
  220. div.compact ul, div.compact ol,
  221. div.compact p, div.compact p,
  222. div.compact div, div.compact div {
  223. margin-top: 0.1em;
  224. margin-bottom: 0.1em;
  225. }
  226. div.tableblock > table {
  227. border: 3px solid #527bbd;
  228. }
  229. thead {
  230. font-family: sans-serif;
  231. font-weight: bold;
  232. }
  233. tfoot {
  234. font-weight: bold;
  235. }
  236. td > div.verse {
  237. white-space: pre;
  238. }
  239. p.table {
  240. margin-top: 0;
  241. }
  242. /* Because the table frame attribute is overriden by CSS in most browsers. */
  243. div.tableblock > table[frame="void"] {
  244. border-style: none;
  245. }
  246. div.tableblock > table[frame="hsides"] {
  247. border-left-style: none;
  248. border-right-style: none;
  249. }
  250. div.tableblock > table[frame="vsides"] {
  251. border-top-style: none;
  252. border-bottom-style: none;
  253. }
  254. div.hdlist {
  255. margin-top: 0.8em;
  256. margin-bottom: 0.8em;
  257. }
  258. div.hdlist tr {
  259. padding-bottom: 15px;
  260. }
  261. dt.hdlist1.strong, td.hdlist1.strong {
  262. font-weight: bold;
  263. }
  264. td.hdlist1 {
  265. vertical-align: top;
  266. font-style: normal;
  267. padding-right: 0.8em;
  268. color: navy;
  269. }
  270. td.hdlist2 {
  271. vertical-align: top;
  272. }
  273. div.hdlist.compact tr {
  274. margin: 0;
  275. padding-bottom: 0;
  276. }
  277. .comment {
  278. background: yellow;
  279. }
  280. @media print {
  281. div#footer-badges { display: none; }
  282. }
  283. div#toctitle {
  284. color: #527bbd;
  285. font-family: sans-serif;
  286. font-size: 1.1em;
  287. font-weight: bold;
  288. margin-top: 1.0em;
  289. margin-bottom: 0.1em;
  290. }
  291. div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
  292. margin-top: 0;
  293. margin-bottom: 0;
  294. }
  295. div.toclevel2 {
  296. margin-left: 2em;
  297. font-size: 0.9em;
  298. }
  299. div.toclevel3 {
  300. margin-left: 4em;
  301. font-size: 0.9em;
  302. }
  303. div.toclevel4 {
  304. margin-left: 6em;
  305. font-size: 0.9em;
  306. }
  307. /* Overrides for manpage documents */
  308. h1 {
  309. padding-top: 0.5em;
  310. padding-bottom: 0.5em;
  311. border-top: 2px solid silver;
  312. border-bottom: 2px solid silver;
  313. }
  314. h2 {
  315. border-style: none;
  316. }
  317. div.sectionbody {
  318. margin-left: 5%;
  319. }
  320. @media print {
  321. div#toc { display: none; }
  322. }
  323. /* Workarounds for IE6's broken and incomplete CSS2. */
  324. div.sidebar-content {
  325. background: #ffffee;
  326. border: 1px solid silver;
  327. padding: 0.5em;
  328. }
  329. div.sidebar-title, div.image-title {
  330. color: #527bbd;
  331. font-family: sans-serif;
  332. font-weight: bold;
  333. margin-top: 0.0em;
  334. margin-bottom: 0.5em;
  335. }
  336. div.listingblock div.content {
  337. border: 1px solid silver;
  338. background: #f4f4f4;
  339. padding: 0.5em;
  340. }
  341. div.quoteblock-attribution {
  342. padding-top: 0.5em;
  343. text-align: right;
  344. }
  345. div.verseblock-content {
  346. white-space: pre;
  347. }
  348. div.verseblock-attribution {
  349. padding-top: 0.75em;
  350. text-align: left;
  351. }
  352. div.exampleblock-content {
  353. border-left: 2px solid silver;
  354. padding-left: 0.5em;
  355. }
  356. /* IE6 sets dynamically generated links as visited. */
  357. div#toc a:visited { color: blue; }
  358. </style>
  359. </head>
  360. <body>
  361. <div id="header">
  362. <h1>
  363. ARIA2C(1) Manual Page
  364. </h1>
  365. <h2>NAME</h2>
  366. <div class="sectionbody">
  367. <p>aria2c -
  368. The ultra fast download utility
  369. </p>
  370. </div>
  371. </div>
  372. <h2>SYNOPSIS</h2>
  373. <div class="sectionbody">
  374. <div class="paragraph"><p>aria2c [<em>OPTIONS</em>] [<em>URL</em> | <em>TORRENT_FILE</em> | <em>METALINK_FILE</em>]&#8230;</p></div>
  375. </div>
  376. <h2 id="_description">DESCRIPTION</h2>
  377. <div class="sectionbody">
  378. <div class="paragraph"><p>aria2 is a utility for downloading files. The supported protocols are
  379. HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from
  380. multiple sources/protocols and tries to utilize your maximum download
  381. bandwidth. It supports downloading a file from HTTP(S)/FTP and
  382. BitTorrent at the same time, while the data downloaded from
  383. HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink&#8217;s
  384. chunk checksums, aria2 automatically validates chunks of data while
  385. downloading a file like BitTorrent.</p></div>
  386. </div>
  387. <h2 id="_options">OPTIONS</h2>
  388. <div class="sectionbody">
  389. <h3 id="_basic_options">Basic Options</h3><div style="clear:left"></div>
  390. <div class="dlist"><dl>
  391. <dt class="hdlist1">
  392. <strong>-d</strong>, <strong>--dir</strong>=DIR
  393. </dt>
  394. <dd>
  395. <p>
  396. The directory to store the downloaded file.
  397. </p>
  398. </dd>
  399. <dt class="hdlist1">
  400. <strong>-i</strong>, <strong>--input-file</strong>=FILE
  401. </dt>
  402. <dd>
  403. <p>
  404. Downloads URIs found in FILE. You can specify multiple URIs for a single
  405. entity: separate URIs on a single line using the TAB character.
  406. Reads input from stdin when <em>-</em> is specified.
  407. The additional <strong>out</strong> and <strong>dir</strong> options can be specified after each line of
  408. URIs. This optional line must start with white space(s).
  409. See <strong>Input File</strong> subsection for details.
  410. </p>
  411. </dd>
  412. <dt class="hdlist1">
  413. <strong>-l</strong>, <strong>--log</strong>=LOG
  414. </dt>
  415. <dd>
  416. <p>
  417. The file name of the log file. If <em>-</em> is specified, log is written to
  418. stdout.
  419. </p>
  420. </dd>
  421. <dt class="hdlist1">
  422. <strong>-j</strong>, <strong>--max-concurrent-downloads</strong>=N
  423. </dt>
  424. <dd>
  425. <p>
  426. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  427. torrent and metalink. See also <strong>-s</strong> and <strong>-C</strong> option.
  428. Default: <em>5</em>
  429. </p>
  430. </dd>
  431. <dt class="hdlist1">
  432. <strong>-V</strong>, <strong>--check-integrity</strong>[=<em>true</em>|<em>false</em>]
  433. </dt>
  434. <dd>
  435. <p>
  436. Check file integrity by validating piece hashes.
  437. This option has effect only in BitTorrent and Metalink downloads with
  438. chunk checksums.
  439. Use this option to re-download a damaged portion of a file.
  440. Default: <em>false</em>
  441. </p>
  442. </dd>
  443. <dt class="hdlist1">
  444. <strong>-c</strong>, <strong>--continue</strong>
  445. </dt>
  446. <dd>
  447. <p>
  448. Continue downloading a partially downloaded file.
  449. Use this option to resume a download started by a web browser or another
  450. program which downloads files sequentially from the beginning.
  451. Currently this option is only applicable to HTTP(S)/FTP downloads.
  452. </p>
  453. </dd>
  454. <dt class="hdlist1">
  455. <strong>-h</strong>, <strong>--help</strong>[=CATEGORY|KEYWORD]
  456. </dt>
  457. <dd>
  458. <p>
  459. Print usage and exit. The help messages are classified in several
  460. categories. A category starts with <em>#</em>. For example, type
  461. "--help=#http" to get the usage for the options related to http. If
  462. non-category keyword is given, print the usage of the options whose
  463. name includes given keyword.
  464. Available Values: <em>#basic</em>, <em>#advanced</em>, <em>#http</em>, <em>#https</em>, <em>#ftp</em>,
  465. <em>#metalink</em>, <em>#bittorrent</em>, <em>#cookie</em>, <em>#hook</em>, <em>#file</em>, <em>#xml-rpc</em>,
  466. <em>#experimental</em>, <em>#all</em>
  467. Default: <em>#basic</em>
  468. </p>
  469. </dd>
  470. </dl></div>
  471. <h3 id="_http_ftp_options">HTTP/FTP Options</h3><div style="clear:left"></div>
  472. <div class="dlist"><dl>
  473. <dt class="hdlist1">
  474. <strong>--all-proxy</strong>=PROXY
  475. </dt>
  476. <dd>
  477. <p>
  478. Use this proxy server for all protocols.
  479. You can override this setting and specify a proxy server for a particular
  480. protocol using <strong>--http-proxy</strong>, <strong>--https-proxy</strong> and <strong>--ftp-proxy</strong> options.
  481. This affects all URLs.
  482. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  483. </p>
  484. </dd>
  485. <dt class="hdlist1">
  486. <strong>--connect-timeout</strong>=SEC
  487. </dt>
  488. <dd>
  489. <p>
  490. Set the connect timeout in seconds to establish connection to
  491. HTTP/FTP/proxy server. After the connection is established, this
  492. option makes no effect and <strong>--timeout</strong> option is used instead.
  493. Default: <em>60</em>
  494. </p>
  495. </dd>
  496. <dt class="hdlist1">
  497. <strong>--dry-run</strong>[=<em>true</em>|<em>false</em>]
  498. </dt>
  499. <dd>
  500. <p>
  501. If <em>true</em> is given, aria2 just checks whether the remote file is
  502. available and doesn&#8217;t download data. This option has effect on
  503. HTTP/FTP download. BitTorrent downloads are canceled if <em>true</em> is
  504. specified. Default: <em>false</em>
  505. </p>
  506. </dd>
  507. <dt class="hdlist1">
  508. <strong>--lowest-speed-limit</strong>=SPEED
  509. </dt>
  510. <dd>
  511. <p>
  512. Close connection if download speed is lower than or equal to this
  513. value(bytes per sec).
  514. <em>0</em> means aria2 does not have a lowest speed limit.
  515. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  516. This option does not affect BitTorrent downloads.
  517. Default: <em>0</em>
  518. </p>
  519. </dd>
  520. <dt class="hdlist1">
  521. <strong>--max-file-not-found</strong>=NUM
  522. </dt>
  523. <dd>
  524. <p>
  525. If aria2 receives &#8216;file not found&#8217; status from the remote HTTP/FTP
  526. servers NUM times without getting a single byte, then force the
  527. download to fail. Specify <em>0</em> to disable this option. This options is
  528. effective only when using HTTP/FTP servers.
  529. Default: <em>0</em>
  530. </p>
  531. </dd>
  532. <dt class="hdlist1">
  533. <strong>-m</strong>, <strong>--max-tries</strong>=N
  534. </dt>
  535. <dd>
  536. <p>
  537. Set number of tries. <em>0</em> means unlimited.
  538. Default: <em>5</em>
  539. </p>
  540. </dd>
  541. <dt class="hdlist1">
  542. <strong>-n</strong>, <strong>--no-netrc</strong>
  543. </dt>
  544. <dd>
  545. <p>
  546. Disables netrc support. netrc support is enabled by default.
  547. </p>
  548. </dd>
  549. <dt class="hdlist1">
  550. <strong>--no-proxy</strong>=DOMAINS
  551. </dt>
  552. <dd>
  553. <p>
  554. Specify comma separated hostnames or domains where proxy should not be
  555. used.
  556. </p>
  557. </dd>
  558. <dt class="hdlist1">
  559. <strong>-o</strong>, <strong>--out</strong>=FILE
  560. </dt>
  561. <dd>
  562. <p>
  563. The file name of the downloaded file.
  564. </p>
  565. </dd>
  566. </dl></div>
  567. <div class="admonitionblock">
  568. <table><tr>
  569. <td class="icon">
  570. <div class="title">Note</div>
  571. </td>
  572. <td class="content">In Metalink or BitTorrent download you cannot specify file name.
  573. The file name specified here is only used when the URLs fed to aria2
  574. are done by command line without <strong>-i</strong>, <strong>-Z</strong> option. For example:
  575. aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"</td>
  576. </tr></table>
  577. </div>
  578. <div class="dlist"><dl>
  579. <dt class="hdlist1">
  580. <strong>--proxy-method</strong>=METHOD
  581. </dt>
  582. <dd>
  583. <p>
  584. Set the method to use in proxy request. <em>METHOD</em> is either <em>get</em> or
  585. <em>tunnel</em>. HTTPS downloads always use <em>tunnel</em> regardless of this
  586. option.
  587. Default: <em>get</em>
  588. </p>
  589. </dd>
  590. <dt class="hdlist1">
  591. <strong>-R</strong>, <strong>--remote-time</strong>[=<em>true</em>|<em>false</em>]
  592. </dt>
  593. <dd>
  594. <p>
  595. Retrieve timestamp of the remote file from the remote HTTP/FTP
  596. server and if it is available, apply it to the local file.
  597. Default: <em>false</em>
  598. </p>
  599. </dd>
  600. <dt class="hdlist1">
  601. <strong>--retry-wait</strong>=SEC
  602. </dt>
  603. <dd>
  604. <p>
  605. Set the seconds to wait to retry after an error has occured.
  606. Specify a value between <em>0</em> and <em>60</em>.
  607. Default: <em>5</em>
  608. </p>
  609. </dd>
  610. <dt class="hdlist1">
  611. <strong>--server-stat-of</strong>=FILE
  612. </dt>
  613. <dd>
  614. <p>
  615. Specify the filename to which performance profile of the servers is
  616. saved. You can load saved data using <strong>--server-stat-if</strong> option. See
  617. <strong>Server Performance Profile</strong> subsection below for file format.
  618. </p>
  619. </dd>
  620. <dt class="hdlist1">
  621. <strong>--server-stat-if</strong>=FILE
  622. </dt>
  623. <dd>
  624. <p>
  625. Specify the filename to load performance profile of the servers. The
  626. loaded data will be used in some URI selector such as <em>feedback</em>.
  627. See also <strong>--uri-selector</strong> option. See <strong>Server Performance Profile</strong>
  628. subsection below for file format.
  629. </p>
  630. </dd>
  631. <dt class="hdlist1">
  632. <strong>--server-stat-timeout</strong>=SEC
  633. </dt>
  634. <dd>
  635. <p>
  636. Specifies timeout in seconds to invalidate performance profile of
  637. the servers since the last contact to them.
  638. Default: <em>86400</em> (24hours)
  639. </p>
  640. </dd>
  641. <dt class="hdlist1">
  642. <strong>-s</strong>, <strong>--split</strong>=N
  643. </dt>
  644. <dd>
  645. <p>
  646. Download a file using N connections.
  647. If more than N URLs are given, first N URLs are used and remaining URLs are
  648. used for backup.
  649. If less than N URLs are given, those URLs are used more than once so that N
  650. connections total are made simultaneously.
  651. Please see <strong>-j</strong> option too.
  652. Please note that in Metalink download, this option has no effect and use
  653. <strong>-C</strong> option instead.
  654. Default: <em>5</em>
  655. </p>
  656. </dd>
  657. <dt class="hdlist1">
  658. <strong>-t</strong>, <strong>--timeout</strong>=SEC
  659. </dt>
  660. <dd>
  661. <p>
  662. Set timeout in seconds.
  663. Default: <em>60</em>
  664. </p>
  665. </dd>
  666. <dt class="hdlist1">
  667. <strong>--uri-selector</strong>=SELECTOR
  668. </dt>
  669. <dd>
  670. <p>
  671. Specify URI selection algorithm. The possible values are <em>inorder</em>,
  672. <em>feedback</em> and <em>adaptive</em>. If <em>inorder</em> is given, URI is tried in
  673. the order appeared in the URI list. If <em>feedback</em> is given, aria2
  674. uses download speed observed in the previous downloads and choose
  675. fastest server in the URI list. This also effectively skips dead
  676. mirrors. The observed download speed is a part of performance
  677. profile of servers mentioned in <strong>--server-stat-of</strong> and
  678. <strong>--server-stat-if</strong> options. If <em>adaptive</em> is given, selects one of
  679. the best mirrors for the first and reserved connections. For
  680. supplementary ones, it returns mirrors which has not been tested
  681. yet, and if each of them has already been tested, returns mirrors
  682. which has to be tested again. Otherwise, it doesn&#8217;t select anymore
  683. mirrors. Like <em>feedback</em>, it uses a performance profile of servers.
  684. Default: <em>feedback</em>
  685. </p>
  686. </dd>
  687. </dl></div>
  688. <h3 id="_http_specific_options">HTTP Specific Options</h3><div style="clear:left"></div>
  689. <div class="dlist"><dl>
  690. <dt class="hdlist1">
  691. <strong>--ca-certificate</strong>=FILE
  692. </dt>
  693. <dd>
  694. <p>
  695. Use the certificate authorities in FILE to verify the peers.
  696. The certificate file must be in PEM format and can contain multiple CA
  697. certificates.
  698. Use <strong>--check-certificate</strong> option to enable verification.
  699. </p>
  700. </dd>
  701. <dt class="hdlist1">
  702. <strong>--certificate</strong>=FILE
  703. </dt>
  704. <dd>
  705. <p>
  706. Use the client certificate in FILE.
  707. The certificate must be in PEM format.
  708. You may use <strong>--private-key</strong> option to specify the private key.
  709. </p>
  710. </dd>
  711. <dt class="hdlist1">
  712. <strong>--check-certificate</strong>[=<em>true</em>|<em>false</em>]
  713. </dt>
  714. <dd>
  715. <p>
  716. Verify the peer using certificates specified in <strong>--ca-certificate</strong> option.
  717. Default: <em>true</em>
  718. </p>
  719. </dd>
  720. <dt class="hdlist1">
  721. <strong>--http-auth-challenge</strong>[=<em>true</em>|<em>false</em>]
  722. </dt>
  723. <dd>
  724. <p>
  725. Send HTTP authorization header only when it is requested by the
  726. server. If <em>false</em> is set, then authorization header is always sent
  727. to the server. There is an exception: if username and password are
  728. embedded in URI, authorization header is always sent to the server
  729. regardless of this option. Default: <em>false</em>
  730. </p>
  731. </dd>
  732. <dt class="hdlist1">
  733. <strong>--http-auth-scheme</strong>=SCHEME
  734. </dt>
  735. <dd>
  736. <p>
  737. Set HTTP authentication scheme.
  738. Currently, <em>basic</em> is the only supported scheme.
  739. Default: <em>basic</em>
  740. </p>
  741. </dd>
  742. <dt class="hdlist1">
  743. <strong>--http-user</strong>=USER
  744. </dt>
  745. <dd>
  746. <p>
  747. Set HTTP user. This affects all URLs.
  748. </p>
  749. </dd>
  750. <dt class="hdlist1">
  751. <strong>--http-passwd</strong>=PASSWD
  752. </dt>
  753. <dd>
  754. <p>
  755. Set HTTP password. This affects all URLs.
  756. </p>
  757. </dd>
  758. <dt class="hdlist1">
  759. <strong>--http-proxy</strong>=PROXY
  760. </dt>
  761. <dd>
  762. <p>
  763. Use this proxy server for HTTP. See also <strong>--all-proxy</strong> option.
  764. This affects all URLs.
  765. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  766. </p>
  767. </dd>
  768. <dt class="hdlist1">
  769. <strong>--https-proxy</strong>=PROXY
  770. </dt>
  771. <dd>
  772. <p>
  773. Use this proxy server for HTTPS. See also <strong>--all-proxy</strong> option.
  774. This affects all URLs.
  775. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  776. </p>
  777. </dd>
  778. <dt class="hdlist1">
  779. <strong>--private-key</strong>=FILE
  780. </dt>
  781. <dd>
  782. <p>
  783. Use the private key in FILE.
  784. The private key must be decrypted and in PEM format.
  785. The behavior when encrypted one is given is undefined.
  786. See also <strong>--certificate</strong> option.
  787. </p>
  788. </dd>
  789. <dt class="hdlist1">
  790. <strong>--referer</strong>=REFERER
  791. </dt>
  792. <dd>
  793. <p>
  794. Set Referer. This affects all URLs.
  795. </p>
  796. </dd>
  797. <dt class="hdlist1">
  798. <strong>--enable-http-keep-alive</strong>[=<em>true</em>|<em>false</em>]
  799. </dt>
  800. <dd>
  801. <p>
  802. Enable HTTP/1.1 persistent connection.
  803. Default: <em>true</em>
  804. </p>
  805. </dd>
  806. <dt class="hdlist1">
  807. <strong>--enable-http-pipelining</strong>[=<em>true</em>|<em>false</em>]
  808. </dt>
  809. <dd>
  810. <p>
  811. Enable HTTP/1.1 pipelining.
  812. Default: <em>false</em>
  813. </p>
  814. </dd>
  815. <dt class="hdlist1">
  816. <strong>--header</strong>=HEADER
  817. </dt>
  818. <dd>
  819. <p>
  820. Append HEADER to HTTP request header.
  821. You can use this option repeatedly to specify more than one header:
  822. aria2c <strong>--header</strong>="X-A: b78" <strong>--header</strong>="X-B: 9J1" "http://host/file"
  823. </p>
  824. </dd>
  825. <dt class="hdlist1">
  826. <strong>--load-cookies</strong>=FILE
  827. </dt>
  828. <dd>
  829. <p>
  830. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  831. Mozilla/Firefox(1.x/2.x)/Netscape format.
  832. </p>
  833. </dd>
  834. </dl></div>
  835. <div class="admonitionblock">
  836. <table><tr>
  837. <td class="icon">
  838. <div class="title">Note</div>
  839. </td>
  840. <td class="content">If aria2 is built without libsqlite3, then it doesn&#8217;t support Firefox3 cookie format.</td>
  841. </tr></table>
  842. </div>
  843. <div class="dlist"><dl>
  844. <dt class="hdlist1">
  845. <strong>--save-cookies</strong>=FILE
  846. </dt>
  847. <dd>
  848. <p>
  849. Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/ Netscape
  850. format. If FILE already exists, it is overwritten. Session Cookies
  851. are also saved and their expiry values are treated as 0. Possible
  852. Values: <em>/path/to/file</em>
  853. </p>
  854. </dd>
  855. <dt class="hdlist1">
  856. <strong>--use-head</strong>[=<em>true</em>|<em>false</em>]
  857. </dt>
  858. <dd>
  859. <p>
  860. Use HEAD method for the first request to the HTTP server.
  861. Default: <em>false</em>
  862. </p>
  863. </dd>
  864. <dt class="hdlist1">
  865. <strong>-U</strong>, <strong>--user-agent</strong>=USER_AGENT
  866. </dt>
  867. <dd>
  868. <p>
  869. Set user agent for HTTP(S) downloads.
  870. </p>
  871. </dd>
  872. </dl></div>
  873. <h3 id="_ftp_specific_options">FTP Specific Options</h3><div style="clear:left"></div>
  874. <div class="dlist"><dl>
  875. <dt class="hdlist1">
  876. <strong>--ftp-user</strong>=USER
  877. </dt>
  878. <dd>
  879. <p>
  880. Set FTP user. This affects all URLs.
  881. Default: <em>anonymous</em>
  882. </p>
  883. </dd>
  884. <dt class="hdlist1">
  885. <strong>--ftp-passwd</strong>=PASSWD
  886. </dt>
  887. <dd>
  888. <p>
  889. Set FTP password. This affects all URLs.
  890. Default: <em>ARIA2USER@</em>
  891. </p>
  892. </dd>
  893. <dt class="hdlist1">
  894. <strong>-p</strong>, <strong>--ftp-pasv</strong>[=<em>true</em>|<em>false</em>]
  895. </dt>
  896. <dd>
  897. <p>
  898. Use the passive mode in FTP.
  899. If <em>false</em> is given, the active mode will be used.
  900. Default: <em>true</em>
  901. </p>
  902. </dd>
  903. <dt class="hdlist1">
  904. <strong>--ftp-proxy</strong>=PROXY
  905. </dt>
  906. <dd>
  907. <p>
  908. Use this proxy server for FTP. See also <strong>--all-proxy</strong> option.
  909. This affects all URLs.
  910. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  911. </p>
  912. </dd>
  913. <dt class="hdlist1">
  914. <strong>--ftp-type</strong>=TYPE
  915. </dt>
  916. <dd>
  917. <p>
  918. Set FTP transfer type. TYPE is either <em>binary</em> or <em>ascii</em>.
  919. Default: <em>binary</em>
  920. </p>
  921. </dd>
  922. <dt class="hdlist1">
  923. <strong>--ftp-reuse-connection</strong>[=<em>true</em>|<em>false</em>]
  924. </dt>
  925. <dd>
  926. <p>
  927. Reuse connection in FTP.
  928. Default: <em>true</em>
  929. </p>
  930. </dd>
  931. </dl></div>
  932. <h3 id="_bittorrent_metalink_options">BitTorrent/Metalink Options</h3><div style="clear:left"></div>
  933. <div class="dlist"><dl>
  934. <dt class="hdlist1">
  935. <strong>--select-file</strong>=INDEX&#8230;
  936. </dt>
  937. <dd>
  938. <p>
  939. Set file to download by specifying its index.
  940. You can find the file index using the <strong>--show-files</strong> option.
  941. Multiple indexes can be specified by using ",", for example: <em>3,6</em>.
  942. You can also use "-" to specify a range: <em>1-5</em>.
  943. "," and "-" can be used together: <em>1-5,8,9</em>.
  944. When used with the -M option, index may vary depending on the query
  945. (see <strong>--metalink-</strong>* options).
  946. </p>
  947. </dd>
  948. </dl></div>
  949. <div class="admonitionblock">
  950. <table><tr>
  951. <td class="icon">
  952. <div class="title">Note</div>
  953. </td>
  954. <td class="content">In multi file torrent, the adjacent files specified by this option may
  955. also be downloaded. This is by design, not a bug.
  956. A single piece may include several files or part of files, and aria2
  957. writes the piece to the appropriate files.</td>
  958. </tr></table>
  959. </div>
  960. <div class="dlist"><dl>
  961. <dt class="hdlist1">
  962. <strong>-S</strong>, <strong>--show-files</strong>
  963. </dt>
  964. <dd>
  965. <p>
  966. Print file listing of .torrent or .metalink file and exit.
  967. In case of .torrent file, additional information
  968. (infohash, piece length, etc) is also printed.
  969. </p>
  970. </dd>
  971. </dl></div>
  972. <h3 id="_bittorrent_specific_options">BitTorrent Specific Options</h3><div style="clear:left"></div>
  973. <div class="dlist"><dl>
  974. <dt class="hdlist1">
  975. <strong>--bt-external-ip</strong>=IPADDRESS
  976. </dt>
  977. <dd>
  978. <p>
  979. Specify the external IP address to report to a BitTorrent
  980. tracker. Although this function is named "external", it can accept
  981. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  982. </p>
  983. </dd>
  984. <dt class="hdlist1">
  985. <strong>--bt-hash-check-seed</strong>[=<em>true</em>|<em>false</em>]
  986. </dt>
  987. <dd>
  988. <p>
  989. If <em>true</em> is given, after hash check using <strong>--check-integrity</strong> option and
  990. file is complete, continue to seed file. If you want to check file
  991. and download it only when it is damaged or incomplete, set this
  992. option to <em>false</em>. This option has effect only on BitTorrent download.
  993. Default: <em>true</em>
  994. </p>
  995. </dd>
  996. <dt class="hdlist1">
  997. <strong>--bt-max-open-files</strong>=NUM
  998. </dt>
  999. <dd>
  1000. <p>
  1001. Specify maximum number of files to open in each BitTorrent download.
  1002. Default: <em>100</em>
  1003. </p>
  1004. </dd>
  1005. <dt class="hdlist1">
  1006. <strong>--bt-max-peers</strong>=NUM
  1007. </dt>
  1008. <dd>
  1009. <p>
  1010. Specify the maximum number of peers per torrent. <em>0</em> means
  1011. unlimited. See also <strong>--bt-request-peer-speed-limit</strong> option.
  1012. Default: <em>55</em>
  1013. </p>
  1014. </dd>
  1015. <dt class="hdlist1">
  1016. <strong>--bt-min-crypto-level</strong>=<em>plain</em>|<em>arc4</em>
  1017. </dt>
  1018. <dd>
  1019. <p>
  1020. Set minimum level of encryption method.
  1021. If several encryption methods are provided by a peer, aria2 chooses the lowest
  1022. one which satisfies the given level.
  1023. Default: <em>plain</em>
  1024. </p>
  1025. </dd>
  1026. <dt class="hdlist1">
  1027. <strong>--bt-require-crypto</strong>=<em>true</em>|<em>false</em>
  1028. </dt>
  1029. <dd>
  1030. <p>
  1031. If true is given, aria2 doesn&#8217;t accept and establish connection with legacy
  1032. BitTorrent handshake(\19BitTorrent protocol).
  1033. Thus aria2 always uses Obfuscation handshake.
  1034. Default: <em>false</em>
  1035. </p>
  1036. </dd>
  1037. <dt class="hdlist1">
  1038. <strong>--bt-request-peer-speed-limit</strong>=SPEED
  1039. </dt>
  1040. <dd>
  1041. <p>
  1042. If the whole download speed of every torrent is lower than SPEED,
  1043. aria2 temporarily increases the number of peers to try for more
  1044. download speed. Configuring this option with your preferred download
  1045. speed can increase your download speed in some cases.
  1046. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1047. Default: <em>50K</em>
  1048. </p>
  1049. </dd>
  1050. <dt class="hdlist1">
  1051. <strong>--bt-seed-unverified</strong>[=<em>true</em>|<em>false</em>]
  1052. </dt>
  1053. <dd>
  1054. <p>
  1055. Seed previously downloaded files without verifying piece hashes.
  1056. Default: <em>false</em>
  1057. </p>
  1058. </dd>
  1059. <dt class="hdlist1">
  1060. <strong>--bt-stop-timeout</strong>=SEC
  1061. </dt>
  1062. <dd>
  1063. <p>
  1064. Stop BitTorrent download if download speed is 0 in consecutive SEC
  1065. seconds. If <em>0</em> is given, this feature is disabled. Default: <em>0</em>
  1066. </p>
  1067. </dd>
  1068. <dt class="hdlist1">
  1069. <strong>--bt-tracker-interval</strong>=SEC
  1070. </dt>
  1071. <dd>
  1072. <p>
  1073. Set the interval in seconds between tracker requests. This
  1074. completely overrides interval value and aria2 just uses this value
  1075. and ignores the min interval and interval value in the response of
  1076. tracker. If <em>0</em> is set, aria2 determines interval based on the
  1077. response of tracker and the download progress. Default: <em>0</em>
  1078. </p>
  1079. </dd>
  1080. <dt class="hdlist1">
  1081. <strong>--dht-entry-point</strong>=HOST:PORT
  1082. </dt>
  1083. <dd>
  1084. <p>
  1085. Set host and port as an entry point to DHT network.
  1086. </p>
  1087. </dd>
  1088. <dt class="hdlist1">
  1089. <strong>--dht-file-path</strong>=PATH
  1090. </dt>
  1091. <dd>
  1092. <p>
  1093. Change the DHT routing table file to PATH.
  1094. Default: <em>$HOME/.aria2/dht.dat</em>
  1095. </p>
  1096. </dd>
  1097. <dt class="hdlist1">
  1098. <strong>--dht-listen-port</strong>=PORT&#8230;
  1099. </dt>
  1100. <dd>
  1101. <p>
  1102. Set UDP listening port for DHT.
  1103. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1104. You can also use "-" to specify a range: <em>6881-6999</em>. "," and "-" can be used
  1105. together.
  1106. Default: <em>6881-6999</em>
  1107. </p>
  1108. </dd>
  1109. </dl></div>
  1110. <div class="admonitionblock">
  1111. <table><tr>
  1112. <td class="icon">
  1113. <div class="title">Note</div>
  1114. </td>
  1115. <td class="content">Make sure that the specified ports are open for incoming UDP traffic.</td>
  1116. </tr></table>
  1117. </div>
  1118. <div class="dlist"><dl>
  1119. <dt class="hdlist1">
  1120. <strong>--enable-dht</strong>[=<em>true</em>|<em>false</em>]
  1121. </dt>
  1122. <dd>
  1123. <p>
  1124. Enable DHT functionality. If a private flag is set in a torrent, aria2
  1125. doesn&#8217;t use DHT for that download even if <em>true</em> is given.
  1126. Default: <em>false</em>
  1127. </p>
  1128. </dd>
  1129. <dt class="hdlist1">
  1130. <strong>--enable-peer-exchange</strong>[=<em>true</em>|<em>false</em>]
  1131. </dt>
  1132. <dd>
  1133. <p>
  1134. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  1135. feature is disabled for that download even if <em>true</em> is given.
  1136. Default: <em>true</em>
  1137. </p>
  1138. </dd>
  1139. <dt class="hdlist1">
  1140. <strong>--follow-torrent</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1141. </dt>
  1142. <dd>
  1143. <p>
  1144. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".torrent" or content
  1145. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  1146. file and downloads files mentioned in it.
  1147. If <em>mem</em> is specified, a torrent file is not written to the disk, but is just
  1148. kept in memory.
  1149. If <em>false</em> is specified, the action mentioned above is not taken.
  1150. Default: <em>true</em>
  1151. </p>
  1152. </dd>
  1153. <dt class="hdlist1">
  1154. <strong>-O</strong>, <strong>--index-out</strong>=INDEX=PATH
  1155. </dt>
  1156. <dd>
  1157. <p>
  1158. Set file path for file with index=INDEX. You can find the file index
  1159. using the <strong>--show-files</strong> option. PATH is a relative path to the
  1160. path specified in <strong>--dir</strong> option. You can use this option multiple
  1161. times. Using this option, you can specify the output filenames of
  1162. BitTorrent downloads.
  1163. </p>
  1164. </dd>
  1165. <dt class="hdlist1">
  1166. <strong>--listen-port</strong>=PORT&#8230;
  1167. </dt>
  1168. <dd>
  1169. <p>
  1170. Set TCP port number for BitTorrent downloads.
  1171. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1172. You can also use "-" to specify a range: <em>6881-6999</em>.
  1173. "," and "-" can be used together: <em>6881-6889,6999</em>.
  1174. Default: <em>6881-6999</em>
  1175. </p>
  1176. </dd>
  1177. </dl></div>
  1178. <div class="admonitionblock">
  1179. <table><tr>
  1180. <td class="icon">
  1181. <div class="title">Note</div>
  1182. </td>
  1183. <td class="content">Make sure that the specified ports are open for incoming TCP traffic.</td>
  1184. </tr></table>
  1185. </div>
  1186. <div class="dlist"><dl>
  1187. <dt class="hdlist1">
  1188. <strong>--max-overall-upload-limit</strong>=SPEED
  1189. </dt>
  1190. <dd>
  1191. <p>
  1192. Set max overall upload speed in bytes/sec.
  1193. <em>0</em> means unrestricted.
  1194. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1195. To limit the upload speed per torrent, use <strong>--max-upload-limit</strong> option.
  1196. Default: <em>0</em>
  1197. </p>
  1198. </dd>
  1199. <dt class="hdlist1">
  1200. <strong>-u</strong>, <strong>--max-upload-limit</strong>=SPEED
  1201. </dt>
  1202. <dd>
  1203. <p>
  1204. Set max upload speed per each torrent in bytes/sec.
  1205. <em>0</em> means unrestricted.
  1206. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1207. To limit the overall upload speed, use <strong>--max-overall-upload-limit</strong> option.
  1208. Default: <em>0</em>
  1209. </p>
  1210. </dd>
  1211. <dt class="hdlist1">
  1212. <strong>--peer-id-prefix</strong>=PEER_ID_PREFIX
  1213. </dt>
  1214. <dd>
  1215. <p>
  1216. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  1217. If more than 20 bytes are specified, only first 20 bytes are used.
  1218. If less than 20 bytes are specified, the random alphabet characters are
  1219. added to make it&#8217;s length 20 bytes.
  1220. Default: <em>-aria2-</em>
  1221. </p>
  1222. </dd>
  1223. <dt class="hdlist1">
  1224. <strong>--seed-ratio</strong>=RATIO
  1225. </dt>
  1226. <dd>
  1227. <p>
  1228. Specify share ratio. Seed completed torrents until share ratio reaches
  1229. RATIO.
  1230. You are strongly encouraged to specify equals or more than <em>1.0</em> here.
  1231. Specify <em>0.0</em> if you intend to do seeding regardless of share ratio.
  1232. If <strong>--seed-time</strong> option is specified along with this option, seeding ends when
  1233. at least one of the conditions is satisfied.
  1234. Default: <em>1.0</em>
  1235. </p>
  1236. </dd>
  1237. <dt class="hdlist1">
  1238. <strong>--seed-time</strong>=MINUTES
  1239. </dt>
  1240. <dd>
  1241. <p>
  1242. Specify seeding time in minutes. Also see the <strong>--seed-ratio</strong> option.
  1243. </p>
  1244. </dd>
  1245. <dt class="hdlist1">
  1246. <strong>-T</strong>, <strong>--torrent-file</strong>=TORRENT_FILE
  1247. </dt>
  1248. <dd>
  1249. <p>
  1250. The path to the .torrent file.
  1251. You are not required to use this option because you can specify a torrent file without -T.
  1252. </p>
  1253. </dd>
  1254. </dl></div>
  1255. <h3 id="_metalink_specific_options">Metalink Specific Options</h3><div style="clear:left"></div>
  1256. <div class="dlist"><dl>
  1257. <dt class="hdlist1">
  1258. <strong>--follow-metalink</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1259. </dt>
  1260. <dd>
  1261. <p>
  1262. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".metaink" or content
  1263. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  1264. file and downloads files mentioned in it.
  1265. If <em>mem</em> is specified, a metalink file is not written to the disk, but is just
  1266. kept in memory.
  1267. If <em>false</em> is specified, the action mentioned above is not taken.
  1268. Default: <em>true</em>
  1269. </p>
  1270. </dd>
  1271. <dt class="hdlist1">
  1272. <strong>-M</strong>, <strong>--metalink-file</strong>=METALINK_FILE
  1273. </dt>
  1274. <dd>
  1275. <p>
  1276. The file path to .metalink file. You are not required to use this option because you can
  1277. specify a metalink file without -M.
  1278. </p>
  1279. </dd>
  1280. <dt class="hdlist1">
  1281. <strong>-C</strong>, <strong>--metalink-servers</strong>=NUM_SERVERS
  1282. </dt>
  1283. <dd>
  1284. <p>
  1285. The number of servers to connect to simultaneously.
  1286. Some Metalinks regulate the number of servers to connect.
  1287. aria2 strictly respects them.
  1288. This means that if Metalink defines the maxconnections attribute lower
  1289. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  1290. instead of NUM_SERVERS.
  1291. See also <strong>-s</strong> and <strong>-j</strong> options.
  1292. Default: <em>5</em>
  1293. </p>
  1294. </dd>
  1295. <dt class="hdlist1">
  1296. <strong>--metalink-language</strong>=LANGUAGE
  1297. </dt>
  1298. <dd>
  1299. <p>
  1300. The language of the file to download.
  1301. </p>
  1302. </dd>
  1303. <dt class="hdlist1">
  1304. <strong>--metalink-location</strong>=LOCATION[,&#8230;]
  1305. </dt>
  1306. <dd>
  1307. <p>
  1308. The location of the preferred server.
  1309. A comma-delimited list of locations is acceptable, for example, <em>JP,US</em>.
  1310. </p>
  1311. </dd>
  1312. <dt class="hdlist1">
  1313. <strong>--metalink-os</strong>=OS
  1314. </dt>
  1315. <dd>
  1316. <p>
  1317. The operating system of the file to download.
  1318. </p>
  1319. </dd>
  1320. <dt class="hdlist1">
  1321. <strong>--metalink-version</strong>=VERSION
  1322. </dt>
  1323. <dd>
  1324. <p>
  1325. The version of the file to download.
  1326. </p>
  1327. </dd>
  1328. <dt class="hdlist1">
  1329. <strong>--metalink-preferred-protocol</strong>=PROTO
  1330. </dt>
  1331. <dd>
  1332. <p>
  1333. Specify preferred protocol.
  1334. The possible values are <em>http</em>, <em>https</em>, <em>ftp</em> and <em>none</em>.
  1335. Specify <em>none</em> to disable this feature.
  1336. Default: <em>none</em>
  1337. </p>
  1338. </dd>
  1339. <dt class="hdlist1">
  1340. <strong>--metalink-enable-unique-protocol</strong>=<em>true</em>|<em>false</em>
  1341. </dt>
  1342. <dd>
  1343. <p>
  1344. If <em>true</em> is given and several protocols are available for a mirror in a
  1345. metalink file, aria2 uses one of them.
  1346. Use <strong>--metalink-preferred-protocol</strong> option to specify the preference of
  1347. protocol.
  1348. Default: <em>true</em>
  1349. </p>
  1350. </dd>
  1351. </dl></div>
  1352. <h3 id="_xml_rpc_options">XML-RPC Options</h3><div style="clear:left"></div>
  1353. <div class="dlist"><dl>
  1354. <dt class="hdlist1">
  1355. <strong>--enable-xml-rpc</strong>[=<em>true</em>|<em>false</em>]
  1356. </dt>
  1357. <dd>
  1358. <p>
  1359. Enable XML-RPC server. It is strongly recommended to set username
  1360. and password using <strong>--xml-rpc-user</strong> and <strong>--xml-rpc-passwd</strong>
  1361. option. See also <strong>--xml-rpc-listen-port</strong> option. Default: <em>false</em>
  1362. </p>
  1363. </dd>
  1364. <dt class="hdlist1">
  1365. <strong>--xml-rpc-listen-all</strong>[=<em>true</em>|<em>false</em>]
  1366. </dt>
  1367. <dd>
  1368. <p>
  1369. Listen incoming XML-RPC requests on all network interfaces. If false
  1370. is given, listen only on local loopback interface. Default: <em>false</em>
  1371. </p>
  1372. </dd>
  1373. <dt class="hdlist1">
  1374. <strong>--xml-rpc-listen-port</strong>=PORT
  1375. </dt>
  1376. <dd>
  1377. <p>
  1378. Specify a port number for XML-RPC server to listen to. Possible
  1379. Values: <em>1024</em>-<em>65535</em> Default: <em>6800</em>
  1380. </p>
  1381. </dd>
  1382. <dt class="hdlist1">
  1383. <strong>--xml-rpc-max-request-size</strong>=SIZE
  1384. </dt>
  1385. <dd>
  1386. <p>
  1387. Set max size of XML-RPC request. If aria2 detects the request is
  1388. more than SIZE bytes, it drops connection. Default: <em>2M</em>
  1389. </p>
  1390. </dd>
  1391. <dt class="hdlist1">
  1392. <strong>--xml-rpc-passwd</strong>=PASSWD
  1393. </dt>
  1394. <dd>
  1395. <p>
  1396. Set XML-RPC password.
  1397. </p>
  1398. </dd>
  1399. <dt class="hdlist1">
  1400. <strong>--xml-rpc-user</strong>=USER
  1401. </dt>
  1402. <dd>
  1403. <p>
  1404. Set XML-RPC user.
  1405. </p>
  1406. </dd>
  1407. </dl></div>
  1408. <h3 id="_advanced_options">Advanced Options</h3><div style="clear:left"></div>
  1409. <div class="dlist"><dl>
  1410. <dt class="hdlist1">
  1411. <strong>--allow-overwrite</strong>=<em>true</em>|<em>false</em>
  1412. </dt>
  1413. <dd>
  1414. <p>
  1415. If <em>false</em> is given, and a file already exists but the corresponding
  1416. control file (filename.aria2) doesn&#8217;t exist, then aria2 will not
  1417. re-download the file. See also <strong>--auto-file-renaming</strong> option.
  1418. Default: <em>false</em>
  1419. </p>
  1420. </dd>
  1421. <dt class="hdlist1">
  1422. <strong>--allow-piece-length-change</strong>=<em>true</em>|<em>false</em>
  1423. </dt>
  1424. <dd>
  1425. <p>
  1426. If false is given, aria2 aborts download when a piece length is different
  1427. from one in a control file.
  1428. If true is given, you can proceed but some download progress will be lost.
  1429. Default: <em>false</em>
  1430. </p>
  1431. </dd>
  1432. <dt class="hdlist1">
  1433. <strong>--async-dns</strong>[=<em>true</em>|<em>false</em>]
  1434. </dt>
  1435. <dd>
  1436. <p>
  1437. Enable asynchronous DNS.
  1438. Default: <em>true</em>
  1439. </p>
  1440. </dd>
  1441. <dt class="hdlist1">
  1442. <strong>--auto-file-renaming</strong>[=<em>true</em>|<em>false</em>]
  1443. </dt>
  1444. <dd>
  1445. <p>
  1446. Rename file name if the same file already exists.
  1447. This option works only in HTTP(S)/FTP download.
  1448. The new file name has a dot and a number(1..9999) appended.
  1449. Default: <em>true</em>
  1450. </p>
  1451. </dd>
  1452. <dt class="hdlist1">
  1453. <strong>--auto-save-interval</strong>=SEC
  1454. </dt>
  1455. <dd>
  1456. <p>
  1457. Save a control file(*.aria2) every SEC seconds.
  1458. If <em>0</em> is given, a control file is not saved during download. aria2 saves a
  1459. control file when it stops regardless of the value.
  1460. The possible values are between <em>0</em> to <em>600</em>.
  1461. Default: <em>60</em>
  1462. </p>
  1463. </dd>
  1464. <dt class="hdlist1">
  1465. <strong>--conf-path</strong>=PATH
  1466. </dt>
  1467. <dd>
  1468. <p>
  1469. Change the configuration file path to PATH.
  1470. Default: <em>$HOME/.aria2/aria2.conf</em>
  1471. </p>
  1472. </dd>
  1473. <dt class="hdlist1">
  1474. <strong>-D</strong>, <strong>--daemon</strong>
  1475. </dt>
  1476. <dd>
  1477. <p>
  1478. Run as daemon.
  1479. </p>
  1480. </dd>
  1481. <dt class="hdlist1">
  1482. <strong>--enable-direct-io</strong>[=<em>true</em>|<em>false</em>]
  1483. </dt>
  1484. <dd>
  1485. <p>
  1486. Enable directI/O, which lowers cpu usage while allocating/checking files.
  1487. Turn off if you encounter any error.
  1488. Default: <em>true</em>
  1489. </p>
  1490. </dd>
  1491. <dt class="hdlist1">
  1492. <strong>--event-poll</strong>=POLL
  1493. </dt>
  1494. <dd>
  1495. <p>
  1496. Specify the method for polling events. The possible Values are
  1497. <em>epoll</em> and <em>select</em>. If you use recent Linux that has epoll, then
  1498. the default value is <em>epoll</em>. Otherwise, the default value is
  1499. <em>select</em>.
  1500. </p>
  1501. </dd>
  1502. <dt class="hdlist1">
  1503. <strong>--file-allocation</strong>=METHOD
  1504. </dt>
  1505. <dd>
  1506. <p>
  1507. Specify file allocation method.
  1508. <em>none</em> doesn&#8217;t pre-allocate file space. <em>prealloc</em> pre-allocates file space
  1509. before download begins. This may take some time depending on the size of the
  1510. file.
  1511. If you are using newer file systems such as ext4
  1512. (with extents support), btrfs or xfs, <em>falloc</em> is
  1513. your best choice. It allocates large(few GiB)
  1514. files almost instantly. Don&#8217;t use <em>falloc</em> with
  1515. legacy file systems such as ext3 because it takes
  1516. almost same time as <em>prealloc</em> and it blocks aria2
  1517. entirely until allocation finishes. <em>falloc</em> may
  1518. not be available if your system doesn&#8217;t have
  1519. <strong>posix_fallocate</strong>() function.
  1520. Possible Values: <em>none</em>, <em>prealloc</em>, <em>falloc</em>
  1521. Default: <em>prealloc</em>
  1522. </p>
  1523. </dd>
  1524. <dt class="hdlist1">
  1525. <strong>--log-level</strong>=LEVEL
  1526. </dt>
  1527. <dd>
  1528. <p>
  1529. Set log level to output.
  1530. LEVEL is either <em>debug</em>, <em>info</em>, <em>notice</em>, <em>warn</em> or <em>error</em>.
  1531. Default: <em>debug</em>
  1532. </p>
  1533. </dd>
  1534. <dt class="hdlist1">
  1535. <strong>--on-download-complete</strong>=COMMAND
  1536. </dt>
  1537. <dd>
  1538. <p>
  1539. Set the command to be executed when download completes. See
  1540. <strong>--on-download-start</strong> option for the requirement of COMMAND. See
  1541. also <strong>--on-download-stop</strong> option. Possible Values:
  1542. <em>/path/to/command</em>
  1543. </p>
  1544. </dd>
  1545. <dt class="hdlist1">
  1546. <strong>--on-download-error</strong>=COMMAND
  1547. </dt>
  1548. <dd>
  1549. <p>
  1550. Set the command to be executed when download aborts due to error.
  1551. See <strong>--on-download-start</strong> option for the requirement of COMMAND.
  1552. See also <strong>--on-download-stop</strong> option. Possible Values:
  1553. <em>/path/to/command</em>
  1554. </p>
  1555. </dd>
  1556. <dt class="hdlist1">
  1557. <strong>--on-download-start</strong>=COMMAND
  1558. </dt>
  1559. <dd>
  1560. <p>
  1561. Set the command to be executed when download starts up. COMMAND must
  1562. take just one argument and GID is passed to COMMAND as a first
  1563. argument. Possible Values: <em>/path/to/command</em>
  1564. </p>
  1565. </dd>
  1566. <dt class="hdlist1">
  1567. <strong>--on-download-stop</strong>=COMMAND
  1568. </dt>
  1569. <dd>
  1570. <p>
  1571. Set the command to be executed when download stops. You can override
  1572. the command to be executed for particular download result using
  1573. <strong>--on-download-complete</strong> and <strong>--on-download-error</strong>. If they are
  1574. specified, command specified in this option is not executed. See
  1575. <strong>--on-download-start</strong> option for the requirement of COMMAND.
  1576. Possible Values: <em>/path/to/command</em>
  1577. </p>
  1578. </dd>
  1579. <dt class="hdlist1">
  1580. <strong>--summary-interval</strong>=SEC
  1581. </dt>
  1582. <dd>
  1583. <p>
  1584. Set interval in seconds to output download progress summary.
  1585. Setting <em>0</em> suppresses the output.
  1586. Default: <em>60</em>
  1587. </p>
  1588. </dd>
  1589. </dl></div>
  1590. <div class="admonitionblock">
  1591. <table><tr>
  1592. <td class="icon">
  1593. <div class="title">Note</div>
  1594. </td>
  1595. <td class="content">In multi file torrent downloads, the files adjacent forward to the specified files
  1596. are also allocated if they share the same piece.</td>
  1597. </tr></table>
  1598. </div>
  1599. <div class="dlist"><dl>
  1600. <dt class="hdlist1">
  1601. <strong>-Z</strong>, <strong>--force-sequential</strong>[=<em>true</em>|<em>false</em>]
  1602. </dt>
  1603. <dd>
  1604. <p>
  1605. Fetch URIs in the command-line sequentially and download each URI in a
  1606. separate session, like the usual command-line download utilities.
  1607. Default: <em>false</em>
  1608. </p>
  1609. </dd>
  1610. <dt class="hdlist1">
  1611. <strong>--max-overall-download-limit</strong>=SPEED
  1612. </dt>
  1613. <dd>
  1614. <p>
  1615. Set max overall download speed in bytes/sec. <em>0</em> means
  1616. unrestricted. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K). To
  1617. limit the download speed per download, use <strong>--max-download-limit</strong>
  1618. option. Default: <em>0</em>
  1619. </p>
  1620. </dd>
  1621. <dt class="hdlist1">
  1622. <strong>--max-download-limit</strong>=SPEED
  1623. </dt>
  1624. <dd>
  1625. <p>
  1626. Set max download speed per each download in bytes/sec. <em>0</em> means
  1627. unrestricted. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K). To
  1628. limit the overall download speed, use <strong>--max-overall-download-limit</strong>
  1629. option. Default: <em>0</em>
  1630. </p>
  1631. </dd>
  1632. <dt class="hdlist1">
  1633. <strong>--no-conf</strong>
  1634. </dt>
  1635. <dd>
  1636. <p>
  1637. Disable loading aria2.conf file.
  1638. </p>
  1639. </dd>
  1640. <dt class="hdlist1">
  1641. <strong>--no-file-allocation-limit</strong>=SIZE
  1642. </dt>
  1643. <dd>
  1644. <p>
  1645. No file allocation is made for files whose size is smaller than SIZE.
  1646. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1647. Default: <em>5M</em>
  1648. </p>
  1649. </dd>
  1650. <dt class="hdlist1">
  1651. <strong>-P</strong>, <strong>--parameterized-uri</strong>[=<em>true</em>|<em>false</em>]
  1652. </dt>
  1653. <dd>
  1654. <p>
  1655. Enable parameterized URI support.
  1656. You can specify set of parts: <em>http://{sv1,sv2,sv3}/foo.iso</em>.
  1657. Also you can specify numeric sequences with step counter:
  1658. <em>http://host/image[000-100:2].img</em>.
  1659. A step counter can be omitted.
  1660. If all URIs do not point to the same file, such as the second example above,
  1661. -Z option is required.
  1662. Default: <em>false</em>
  1663. </p>
  1664. </dd>
  1665. <dt class="hdlist1">
  1666. <strong>-q</strong>, <strong>--quiet</strong>[=<em>true</em>|<em>false</em>]
  1667. </dt>
  1668. <dd>
  1669. <p>
  1670. Make aria2 quiet (no console output).
  1671. Default: <em>false</em>
  1672. </p>
  1673. </dd>
  1674. <dt class="hdlist1">
  1675. <strong>--realtime-chunk-checksum</strong>=<em>true</em>|<em>false</em>
  1676. </dt>
  1677. <dd>
  1678. <p>
  1679. Validate chunk of data by calculating checksum while downloading a file if
  1680. chunk checksums are provided.
  1681. Default: <em>true</em>
  1682. </p>
  1683. </dd>
  1684. <dt class="hdlist1">
  1685. <strong>--stop</strong>=SEC
  1686. </dt>
  1687. <dd>
  1688. <p>
  1689. Stop application after SEC seconds has passed.
  1690. If <em>0</em> is given, this feature is disabled.
  1691. Default: <em>0</em>
  1692. </p>
  1693. </dd>
  1694. <dt class="hdlist1">
  1695. <strong>-v</strong>, <strong>--version</strong>
  1696. </dt>
  1697. <dd>
  1698. <p>
  1699. Print the version number, copyright and the configuration information and
  1700. exit.
  1701. </p>
  1702. </dd>
  1703. </dl></div>
  1704. <h3 id="_options_that_take_an_optional_argument">Options That Take An Optional Argument</h3><div style="clear:left"></div>
  1705. <div class="paragraph"><p>The options that have its argument surrounded by square brackets([])
  1706. take an optional argument. Usually omiting the argument is evaluated to <em>true</em>.
  1707. If you use short form of these options(such as <em>-V</em>) and give
  1708. an argument, then the option name and its argument should be concatenated(e.g.
  1709. <em>-Vfalse</em>). If any spaces are inserted between the option name and the argument,
  1710. the argument will be treated as URI and usually this is not what you expect.</p></div>
  1711. <h3 id="_url_torrent_file_metalink_file">URL, TORRENT_FILE, METALINK_FILE</h3><div style="clear:left"></div>
  1712. <div class="paragraph"><p>You can specify multiple URLs in command-line.
  1713. Unless you specify <strong>-Z</strong> option, all URLs must point to the same file or downloading will fail.</p></div>
  1714. <div class="paragraph"><p>You can also specify arbitrary number of torrent files and metalink files
  1715. stored on a local drive. Please note that they are always treated as a
  1716. separate download.</p></div>
  1717. <div class="paragraph"><p>You can specify both torrent file with -T option and URLs. By doing
  1718. this, you can download a file from both torrent swarm and HTTP(S)/FTP
  1719. server at the same time, while the data from HTTP(S)/FTP are uploaded
  1720. to the torrent swarm. For single file torrents, URL can be a complete
  1721. URL pointing to the resource or if URL ends with /, name in torrent
  1722. file in torrent is added. For multi-file torrents, name and path are
  1723. added to form a URL for each file.</p></div>
  1724. <div class="admonitionblock">
  1725. <table><tr>
  1726. <td class="icon">
  1727. <div class="title">Note</div>
  1728. </td>
  1729. <td class="content">Make sure that URL is quoted with single(') or double(") quotation if it
  1730. contains "&amp;" or any characters that have special meaning in shell.</td>
  1731. </tr></table>
  1732. </div>
  1733. <h3 id="_resuming_download">Resuming Download</h3><div style="clear:left"></div>
  1734. <div class="paragraph"><p>Usually, you can resume transfer by just issuing same command(aria2c
  1735. URL) if the previous transfer is made by aria2.</p></div>
  1736. <div class="paragraph"><p>If the previous transfer is made by a browser or wget like sequential
  1737. download manager, then use -c option to continue the transfer(aria2c
  1738. <strong>-c</strong> URL).</p></div>
  1739. </div>
  1740. <h2 id="_exit_status">EXIT STATUS</h2>
  1741. <div class="sectionbody">
  1742. <div class="paragraph"><p>Because aria2 can handle multiple downloads at once, it encounters
  1743. lots of errors in a session. aria2 returns the following exit status
  1744. based on the last error encountered.</p></div>
  1745. <div class="dlist"><dl>
  1746. <dt class="hdlist1">
  1747. <strong>0</strong>
  1748. </dt>
  1749. <dd>
  1750. <p>
  1751. If all downloads are successful.
  1752. </p>
  1753. </dd>
  1754. <dt class="hdlist1">
  1755. <strong>1</strong>
  1756. </dt>
  1757. <dd>
  1758. <p>
  1759. If an unknown error occurs.
  1760. </p>
  1761. </dd>
  1762. <dt class="hdlist1">
  1763. <strong>2</strong>
  1764. </dt>
  1765. <dd>
  1766. <p>
  1767. If time out occurs.
  1768. </p>
  1769. </dd>
  1770. <dt class="hdlist1">
  1771. <strong>3</strong>
  1772. </dt>
  1773. <dd>
  1774. <p>
  1775. If a resource is not found.
  1776. </p>
  1777. </dd>
  1778. <dt class="hdlist1">
  1779. <strong>4</strong>
  1780. </dt>
  1781. <dd>
  1782. <p>
  1783. If aria2 sees the specfied number of "resource not found" error.
  1784. See <strong>--max-file-not-found</strong> option).
  1785. </p>
  1786. </dd>
  1787. <dt class="hdlist1">
  1788. <strong>5</strong>
  1789. </dt>
  1790. <dd>
  1791. <p>
  1792. If a download aborts because download speed is too slow.
  1793. See <strong>--lowest-speed-limit</strong> option)
  1794. </p>
  1795. </dd>
  1796. <dt class="hdlist1">
  1797. <strong>6</strong>
  1798. </dt>
  1799. <dd>
  1800. <p>
  1801. If network problem occurs.
  1802. </p>
  1803. </dd>
  1804. <dt class="hdlist1">
  1805. <strong>7</strong>
  1806. </dt>
  1807. <dd>
  1808. <p>
  1809. If there are unfinished downloads. This error is only reported if
  1810. all finished downloads are successful and there are unfinished
  1811. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  1812. or sending TERM or INT signal.
  1813. </p>
  1814. </dd>
  1815. </dl></div>
  1816. <div class="admonitionblock">
  1817. <table><tr>
  1818. <td class="icon">
  1819. <div class="title">Note</div>
  1820. </td>
  1821. <td class="content">An error occurred in a finished download will not be reported
  1822. as exit status.</td>
  1823. </tr></table>
  1824. </div>
  1825. </div>
  1826. <h2 id="_environment">ENVIRONMENT</h2>
  1827. <div class="sectionbody">
  1828. <div class="paragraph"><p>aria2 recognizes the following environment variables.</p></div>
  1829. <div class="dlist"><dl>
  1830. <dt class="hdlist1">
  1831. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1832. </dt>
  1833. <dd>
  1834. <p>
  1835. Specify proxy server for use in HTTP.
  1836. Overrides http-proxy value in configuration file.
  1837. The command-line option <strong>--http-proxy</strong> overrides this value.
  1838. </p>
  1839. </dd>
  1840. <dt class="hdlist1">
  1841. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1842. </dt>
  1843. <dd>
  1844. <p>
  1845. Specify proxy server for use in HTTPS.
  1846. Overrides https-proxy value in configuration file.
  1847. The command-line option <strong>--https-proxy</strong> overrides this value.
  1848. </p>
  1849. </dd>
  1850. <dt class="hdlist1">
  1851. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1852. </dt>
  1853. <dd>
  1854. <p>
  1855. Specify proxy server for use in FTP.
  1856. Overrides ftp-proxy value in configuration file.
  1857. The command-line option <strong>--ftp-proxy</strong> overrides this value.
  1858. </p>
  1859. </dd>
  1860. <dt class="hdlist1">
  1861. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1862. </dt>
  1863. <dd>
  1864. <p>
  1865. Specify proxy server for use if no protocol-specific proxy is specified.
  1866. Overrides all-proxy value in configuration file.
  1867. The command-line option <strong>--all-proxy</strong> overrides this value.
  1868. </p>
  1869. </dd>
  1870. <dt class="hdlist1">
  1871. no_proxy [DOMAIN,&#8230;]
  1872. </dt>
  1873. <dd>
  1874. <p>
  1875. Specify comma-separated hostname or domains to which proxy should not be used.
  1876. Overrides no-proxy value in configuration file.
  1877. The command-line option <strong>--no-proxy</strong> overrides this value.
  1878. </p>
  1879. </dd>
  1880. </dl></div>
  1881. </div>
  1882. <h2 id="_files">FILES</h2>
  1883. <div class="sectionbody">
  1884. <h3 id="_aria2_conf">aria2.conf</h3><div style="clear:left"></div>
  1885. <div class="paragraph"><p>By default, aria2 parses <em>$HOME/.aria2/aria2.conf</em> as a configuraiton
  1886. file. You can specify the path to configuration file using
  1887. <strong>--conf-path</strong> option. If you don&#8217;t want to use the configuraitonf
  1888. file, use <strong>--no-conf</strong> option.</p></div>
  1889. <div class="paragraph"><p>The configuration file is a text file and has 1 option per each
  1890. line. In each line, you can specify name-value pair in the format:
  1891. NAME=VALUE, where name is the long command-line option name without
  1892. "--" prefix. You can use same syntax for the command-line option. The
  1893. lines beginning "#" are treated as comments.</p></div>
  1894. <div class="listingblock">
  1895. <div class="content">
  1896. <pre><tt># sample configuration file for aria2c
  1897. listen-port=60000
  1898. dht-listen-port=60000
  1899. seed-ratio=1.0
  1900. max-upload-limit=50K
  1901. ftp-pasv=true</tt></pre>
  1902. </div></div>
  1903. <h3 id="_dht_dat">dht.dat</h3><div style="clear:left"></div>
  1904. <div class="paragraph"><p>By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.</p></div>
  1905. <h3 id="_control_file">Control File</h3><div style="clear:left"></div>
  1906. <div class="paragraph"><p>aria2 uses a control file to track the progress of a download. A
  1907. control file is placed in the same directory as the downloading file
  1908. and its filename is the filename of downloading file with ".aria2"
  1909. appended. For example, if you are downloading file.zip, then the
  1910. control file should be file.zip.aria2. (There is a exception for this
  1911. naming convention. If you are downloading a multi torrent, its
  1912. control file is the "top directory" name of the torrent with ".aria2"
  1913. appended. The "top directory" name is a value of "name" key in "info"
  1914. directory in a torrent file.)</p></div>
  1915. <div class="paragraph"><p>Usually a control file is deleted once download completed. If aria2
  1916. decides that download cannot be resumed(for example, when downloading
  1917. a file from a HTTP server which doesn&#8217;t support resume), a control
  1918. file is not created.</p></div>
  1919. <div class="paragraph"><p>Normally if you lose a control file, you cannot resume download. But
  1920. if you have a torrent or metalink with chunk checksums for the file,
  1921. you can resume the download without a control file by giving -V option
  1922. to aria2c in command-line.</p></div>
  1923. <h3 id="_input_file">Input File</h3><div style="clear:left"></div>
  1924. <div class="paragraph"><p>The input file can contain a list of URIs for aria2 to download. You
  1925. can specify multiple URIs for a single entity: separate URIs on a
  1926. single line using the TAB character.</p></div>
  1927. <div class="paragraph"><p>Each line is treated as if it is provided in command-line argument.
  1928. Therefore they are affected by <strong>-Z</strong> and <strong>-P</strong> options.</p></div>
  1929. <div class="paragraph"><p>Additionally, the following options can be specified after each line
  1930. of URIs. These optional lines must start with white space(s).</p></div>
  1931. <div class="ulist"><ul>
  1932. <li>
  1933. <p>
  1934. dir
  1935. </p>
  1936. </li>
  1937. <li>
  1938. <p>
  1939. check-integrity
  1940. </p>
  1941. </li>
  1942. <li>
  1943. <p>
  1944. continue
  1945. </p>
  1946. </li>
  1947. <li>
  1948. <p>
  1949. all-proxy
  1950. </p>
  1951. </li>
  1952. <li>
  1953. <p>
  1954. connect-timeout
  1955. </p>
  1956. </li>
  1957. <li>
  1958. <p>
  1959. dry-run
  1960. </p>
  1961. </li>
  1962. <li>
  1963. <p>
  1964. lowest-speed-limit
  1965. </p>
  1966. </li>
  1967. <li>
  1968. <p>
  1969. max-file-not-found
  1970. </p>
  1971. </li>
  1972. <li>
  1973. <p>
  1974. max-tries
  1975. </p>
  1976. </li>
  1977. <li>
  1978. <p>
  1979. no-proxy
  1980. </p>
  1981. </li>
  1982. <li>
  1983. <p>
  1984. out
  1985. </p>
  1986. </li>
  1987. <li>
  1988. <p>
  1989. proxy-method
  1990. </p>
  1991. </li>
  1992. <li>
  1993. <p>
  1994. remote-time
  1995. </p>
  1996. </li>
  1997. <li>
  1998. <p>
  1999. retry-wait
  2000. </p>
  2001. </li>
  2002. <li>
  2003. <p>
  2004. split
  2005. </p>
  2006. </li>
  2007. <li>
  2008. <p>
  2009. timeout
  2010. </p>
  2011. </li>
  2012. <li>
  2013. <p>
  2014. http-auth-challenge
  2015. </p>
  2016. </li>
  2017. <li>
  2018. <p>
  2019. http-user
  2020. </p>
  2021. </li>
  2022. <li>
  2023. <p>
  2024. http-passwd
  2025. </p>
  2026. </li>
  2027. <li>
  2028. <p>
  2029. http-proxy
  2030. </p>
  2031. </li>
  2032. <li>
  2033. <p>
  2034. https-proxy
  2035. </p>
  2036. </li>
  2037. <li>
  2038. <p>
  2039. referer
  2040. </p>
  2041. </li>
  2042. <li>
  2043. <p>
  2044. enable-http-keep-alive
  2045. </p>
  2046. </li>
  2047. <li>
  2048. <p>
  2049. enable-http-pipelining
  2050. </p>
  2051. </li>
  2052. <li>
  2053. <p>
  2054. header
  2055. </p>
  2056. </li>
  2057. <li>
  2058. <p>
  2059. use-head
  2060. </p>
  2061. </li>
  2062. <li>
  2063. <p>
  2064. user-agent
  2065. </p>
  2066. </li>
  2067. <li>
  2068. <p>
  2069. ftp-user
  2070. </p>
  2071. </li>
  2072. <li>
  2073. <p>
  2074. ftp-passwd
  2075. </p>
  2076. </li>
  2077. <li>
  2078. <p>
  2079. ftp-pasv
  2080. </p>
  2081. </li>
  2082. <li>
  2083. <p>
  2084. ftp-proxy
  2085. </p>
  2086. </li>
  2087. <li>
  2088. <p>
  2089. ftp-type
  2090. </p>
  2091. </li>
  2092. <li>
  2093. <p>
  2094. ftp-reuse-connection
  2095. </p>
  2096. </li>
  2097. <li>
  2098. <p>
  2099. no-netrc
  2100. </p>
  2101. </li>
  2102. <li>
  2103. <p>
  2104. select-file
  2105. </p>
  2106. </li>
  2107. <li>
  2108. <p>
  2109. bt-external-ip
  2110. </p>
  2111. </li>
  2112. <li>
  2113. <p>
  2114. bt-hash-check-seed
  2115. </p>
  2116. </li>
  2117. <li>
  2118. <p>
  2119. bt-max-open-files
  2120. </p>
  2121. </li>
  2122. <li>
  2123. <p>
  2124. bt-max-peers
  2125. </p>
  2126. </li>
  2127. <li>
  2128. <p>
  2129. bt-min-crypto-level
  2130. </p>
  2131. </li>
  2132. <li>
  2133. <p>
  2134. bt-require-crypto
  2135. </p>
  2136. </li>
  2137. <li>
  2138. <p>
  2139. bt-request-peer-speed-limit
  2140. </p>
  2141. </li>
  2142. <li>
  2143. <p>
  2144. bt-seed-unverified
  2145. </p>
  2146. </li>
  2147. <li>
  2148. <p>
  2149. bt-stop-timeout
  2150. </p>
  2151. </li>
  2152. <li>
  2153. <p>
  2154. bt-tracker-interval
  2155. </p>
  2156. </li>
  2157. <li>
  2158. <p>
  2159. enable-peer-exchange
  2160. </p>
  2161. </li>
  2162. <li>
  2163. <p>
  2164. follow-torrent
  2165. </p>
  2166. </li>
  2167. <li>
  2168. <p>
  2169. index-out
  2170. </p>
  2171. </li>
  2172. <li>
  2173. <p>
  2174. max-upload-limit
  2175. </p>
  2176. </li>
  2177. <li>
  2178. <p>
  2179. seed-ratio
  2180. </p>
  2181. </li>
  2182. <li>
  2183. <p>
  2184. seed-time
  2185. </p>
  2186. </li>
  2187. <li>
  2188. <p>
  2189. follow-metalink
  2190. </p>
  2191. </li>
  2192. <li>
  2193. <p>
  2194. metalink-servers
  2195. </p>
  2196. </li>
  2197. <li>
  2198. <p>
  2199. metalink-language
  2200. </p>
  2201. </li>
  2202. <li>
  2203. <p>
  2204. metalink-location
  2205. </p>
  2206. </li>
  2207. <li>
  2208. <p>
  2209. metalink-os
  2210. </p>
  2211. </li>
  2212. <li>
  2213. <p>
  2214. metalink-version
  2215. </p>
  2216. </li>
  2217. <li>
  2218. <p>
  2219. metalink-preferred-protocol
  2220. </p>
  2221. </li>
  2222. <li>
  2223. <p>
  2224. metalink-enable-unique-protocol
  2225. </p>
  2226. </li>
  2227. <li>
  2228. <p>
  2229. allow-overwrite
  2230. </p>
  2231. </li>
  2232. <li>
  2233. <p>
  2234. allow-piece-length-change
  2235. </p>
  2236. </li>
  2237. <li>
  2238. <p>
  2239. async-dns
  2240. </p>
  2241. </li>
  2242. <li>
  2243. <p>
  2244. auto-file-renaming
  2245. </p>
  2246. </li>
  2247. <li>
  2248. <p>
  2249. file-allocation
  2250. </p>
  2251. </li>
  2252. <li>
  2253. <p>
  2254. max-download-limit
  2255. </p>
  2256. </li>
  2257. <li>
  2258. <p>
  2259. no-file-allocation-limit
  2260. </p>
  2261. </li>
  2262. <li>
  2263. <p>
  2264. parameterized-uri
  2265. </p>
  2266. </li>
  2267. <li>
  2268. <p>
  2269. realtime-chunk-checksum
  2270. </p>
  2271. </li>
  2272. </ul></div>
  2273. <div class="paragraph"><p>These options have exactly same meaning of the ones in the
  2274. command-line options, but it just applies to the URIs it belongs to.</p></div>
  2275. <div class="paragraph"><p>For example, the content of uri.txt is</p></div>
  2276. <div class="listingblock">
  2277. <div class="content">
  2278. <pre><tt>http://server/file.iso http://mirror/file.iso
  2279. dir=/iso_images
  2280. out=file.img
  2281. http://foo/bar</tt></pre>
  2282. </div></div>
  2283. <div class="paragraph"><p>If aria2 is executed with <strong>-i</strong> uri.txt <strong>-d</strong> /tmp options, then
  2284. <em>file.iso</em> is saved as <em>/iso_images/file.img</em> and it is downloaded
  2285. from http://server/file.iso and http://mirror/file.iso. The file
  2286. <em>bar</em> is downloaded from http://foo/bar and saved as <em>/tmp/bar</em>.</p></div>
  2287. <div class="paragraph"><p>In some cases, <strong>out</strong> parameter has no effect. See note of <strong>--out</strong>
  2288. option for the restrictions.</p></div>
  2289. <h3 id="_server_performance_profile">Server Performance Profile</h3><div style="clear:left"></div>
  2290. <div class="paragraph"><p>This section describes the format of server performance profile. The
  2291. file is plain text and each line has several NAME=VALUE pair,
  2292. delimited by comma. Currently following NAMEs are recognized:</p></div>
  2293. <div class="dlist"><dl>
  2294. <dt class="hdlist1">
  2295. host
  2296. </dt>
  2297. <dd>
  2298. <p>
  2299. Hostname of the server. Required.
  2300. </p>
  2301. </dd>
  2302. <dt class="hdlist1">
  2303. protocol
  2304. </dt>
  2305. <dd>
  2306. <p>
  2307. Protocol for this profile, such as ftp, http. Required.
  2308. </p>
  2309. </dd>
  2310. <dt class="hdlist1">
  2311. dl_speed
  2312. </dt>
  2313. <dd>
  2314. <p>
  2315. The average download speed observed in the previous download in
  2316. bytes per sec. Required.
  2317. </p>
  2318. </dd>
  2319. <dt class="hdlist1">
  2320. sc_avg_speed
  2321. </dt>
  2322. <dd>
  2323. <p>
  2324. The average download speed observed in the previous download in
  2325. bytes per sec. This value is only updated if the download is done in
  2326. single connection environment and only used by
  2327. AdaptiveURISelector. Optional.
  2328. </p>
  2329. </dd>
  2330. <dt class="hdlist1">
  2331. mc_avg_speed
  2332. </dt>
  2333. <dd>
  2334. <p>
  2335. The average download speed observed in the previous download in
  2336. bytes per sec. This value is only updated if the download is done in
  2337. multi connection environment and only used by
  2338. AdaptiveURISelector. Optional.
  2339. </p>
  2340. </dd>
  2341. <dt class="hdlist1">
  2342. counter
  2343. </dt>
  2344. <dd>
  2345. <p>
  2346. How many times the server is used. Currently this value is only used
  2347. by AdaptiveURISelector. Optional.
  2348. </p>
  2349. </dd>
  2350. <dt class="hdlist1">
  2351. last_updated
  2352. </dt>
  2353. <dd>
  2354. <p>
  2355. Last contact time in GMT with this server, specified in the seconds
  2356. from the Epoch. Required.
  2357. </p>
  2358. </dd>
  2359. <dt class="hdlist1">
  2360. status
  2361. </dt>
  2362. <dd>
  2363. <p>
  2364. ERROR is set when server cannot be reached or out-of-service or
  2365. timeout occurred. Otherwise, OK is set.
  2366. </p>
  2367. </dd>
  2368. </dl></div>
  2369. <div class="paragraph"><p>Those fields must exist in one line. The order of the fields is not
  2370. significant. You can put pairs other than the above; they are simply
  2371. ignored.</p></div>
  2372. <div class="paragraph"><p>An example follows:</p></div>
  2373. <div class="listingblock">
  2374. <div class="content">
  2375. <pre><tt>host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  2376. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR</tt></pre>
  2377. </div></div>
  2378. </div>
  2379. <h2 id="_xml_rpc_interface">XML-RPC INTERFACE</h2>
  2380. <div class="sectionbody">
  2381. <h3 id="_terminology">Terminology</h3><div style="clear:left"></div>
  2382. <div class="dlist"><dl>
  2383. <dt class="hdlist1">
  2384. GID
  2385. </dt>
  2386. <dd>
  2387. <p>
  2388. GID(or gid) is the key to manage each download. Each download has an
  2389. unique GID. Currently GID looks like an integer, but don&#8217;t treat it
  2390. as integer because it may be changed to another type in the future
  2391. release.
  2392. </p>
  2393. </dd>
  2394. </dl></div>
  2395. <h3 id="_methods">Methods</h3><div style="clear:left"></div>
  2396. <div class="paragraph"><p><strong>aria2.addUri</strong> <em>uris[, options[, position]]</em></p></div>
  2397. <div class="paragraph"><p>This method adds new HTTP(S)/FTP download. <em>uris</em> is of type array
  2398. and its element is URI which is of type string. <em>options</em> is of type
  2399. struct and its members are a pair of option name and value. See
  2400. <strong>Options</strong> below for more details. If <em>position</em> is given as an
  2401. integer starting from 0, the new download is inserted at <em>position</em> in
  2402. the waiting queue. If <em>position</em> is not given or <em>position</em> is larger
  2403. than the size of the queue, it is appended at the end of the queue.
  2404. This method returns GID of registered download.</p></div>
  2405. <div class="paragraph"><p><strong>aria2.addTorrent</strong> <em>torrent[, uris[, options[, position]]]</em></p></div>
  2406. <div class="paragraph"><p>This method adds BitTorrent download by uploading .torrent file.
  2407. <em>torrent</em> is of type base64 which contains Base64-encoded .torrent
  2408. file. <em>uris</em> is of type array and its element is URI which is of type
  2409. string. <em>uris</em> is used for Web-seeding. For single file torrents, URI
  2410. can be a complete URI pointing to the resource or if URI ends with /,
  2411. name in torrent file is added. For multi-file torrents, name and path
  2412. in torrent are added to form a URI for each file. <em>options</em> is of
  2413. type struct and its members are a pair of option name and value. See
  2414. <strong>Options</strong> below for more details. If <em>position</em> is given as an
  2415. integer starting from 0, the new download is inserted at <em>position</em> in
  2416. the waiting queue. If <em>position</em> is not given or <em>position</em> is larger
  2417. than the size of the queue, it is appended at the end of the queue.
  2418. This method returns GID of registered download.</p></div>
  2419. <div class="paragraph"><p><strong>aria2.addMetalink</strong> <em>metalink[, options[, position]]</em></p></div>
  2420. <div class="paragraph"><p>This method adds Metalink download by uploading .metalink file.
  2421. <em>metalink</em> is of type base64 which contains Base64-encoded .metalink
  2422. file. <em>options</em> is of type struct and its members are a pair of
  2423. option name and value. See <strong>Options</strong> below for more details. If
  2424. <em>position</em> is given as an integer starting from 0, the new download is
  2425. inserted at <em>position</em> in the waiting queue. If <em>position</em> is not
  2426. given or <em>position</em> is larger than the size of the queue, it is
  2427. appended at the end of the queue. This method returns array of GID of
  2428. registered download.</p></div>
  2429. <div class="paragraph"><p><strong>aria2.remove</strong> <em>gid</em></p></div>
  2430. <div class="paragraph"><p>This method removes the download denoted by <em>gid</em>. <em>gid</em> is of type
  2431. string. If specified download is in progress, it is stopped at
  2432. first. The status of removed download becomes "removed". This method
  2433. returns GID of removed download.</p></div>
  2434. <div class="paragraph"><p><strong>aria2.tellStatus</strong> <em>gid</em></p></div>
  2435. <div class="paragraph"><p>This method returns download progress of the download denoted by
  2436. <em>gid</em>. <em>gid</em> is of type string. The response is of type struct and it
  2437. contains following keys. The value type is string.</p></div>
  2438. <div class="dlist"><dl>
  2439. <dt class="hdlist1">
  2440. gid
  2441. </dt>
  2442. <dd>
  2443. <p>
  2444. GID of this download.
  2445. </p>
  2446. </dd>
  2447. <dt class="hdlist1">
  2448. status
  2449. </dt>
  2450. <dd>
  2451. <p>
  2452. "active" for currently downloading/seeding entry. "waiting" for the
  2453. entry in the queue; download is not started. "error" for the stopped
  2454. download because of error. "complete" for the stopped and completed
  2455. download. "removed" for the download removed by user.
  2456. </p>
  2457. </dd>
  2458. <dt class="hdlist1">
  2459. totalLength
  2460. </dt>
  2461. <dd>
  2462. <p>
  2463. Total length of this download in bytes.
  2464. </p>
  2465. </dd>
  2466. <dt class="hdlist1">
  2467. completedLength
  2468. </dt>
  2469. <dd>
  2470. <p>
  2471. Completed length of this download in bytes.
  2472. </p>
  2473. </dd>
  2474. <dt class="hdlist1">
  2475. uploadLength
  2476. </dt>
  2477. <dd>
  2478. <p>
  2479. Uploaded length of this download in bytes.
  2480. </p>
  2481. </dd>
  2482. <dt class="hdlist1">
  2483. bitfield
  2484. </dt>
  2485. <dd>
  2486. <p>
  2487. Hexadecimal representation of the download progress. The highest bit
  2488. corresponds to piece index 0. The set bits indicate the piece is
  2489. available and unset bits indicate the piece is missing. The spare
  2490. bits at the end are set to zero.
  2491. </p>
  2492. </dd>
  2493. <dt class="hdlist1">
  2494. downloadSpeed
  2495. </dt>
  2496. <dd>
  2497. <p>
  2498. Download speed of this download measured in bytes/sec.
  2499. </p>
  2500. </dd>
  2501. <dt class="hdlist1">
  2502. uploadSpeed
  2503. </dt>
  2504. <dd>
  2505. <p>
  2506. Upload speed of this download measured in bytes/sec.
  2507. </p>
  2508. </dd>
  2509. <dt class="hdlist1">
  2510. infoHash
  2511. </dt>
  2512. <dd>
  2513. <p>
  2514. InfoHash. BitTorrent only.
  2515. </p>
  2516. </dd>
  2517. <dt class="hdlist1">
  2518. numSeeders
  2519. </dt>
  2520. <dd>
  2521. <p>
  2522. The number of seeders the client has connected to. BitTorrent only.
  2523. </p>
  2524. </dd>
  2525. <dt class="hdlist1">
  2526. pieceLength
  2527. </dt>
  2528. <dd>
  2529. <p>
  2530. Piece length in bytes.
  2531. </p>
  2532. </dd>
  2533. <dt class="hdlist1">
  2534. numPieces
  2535. </dt>
  2536. <dd>
  2537. <p>
  2538. The number of pieces.
  2539. </p>
  2540. </dd>
  2541. <dt class="hdlist1">
  2542. connections
  2543. </dt>
  2544. <dd>
  2545. <p>
  2546. The number of peers/servers the client has connected to.
  2547. </p>
  2548. </dd>
  2549. <dt class="hdlist1">
  2550. errorCode
  2551. </dt>
  2552. <dd>
  2553. <p>
  2554. The last error code occurred in this download. The value is of type
  2555. string. The error codes are defined in EXIT STATUS section. This
  2556. value is only available for stopped/completed downloads.
  2557. </p>
  2558. </dd>
  2559. </dl></div>
  2560. <div class="paragraph"><p><strong>aria2.getUris</strong> <em>gid</em></p></div>
  2561. <div class="paragraph"><p>This method returns URIs used in the download denoted by <em>gid</em>. <em>gid</em>
  2562. is of type string. The response is of type array and its element is of
  2563. type struct and it contains following keys. The value type is string.</p></div>
  2564. <div class="dlist"><dl>
  2565. <dt class="hdlist1">
  2566. uri
  2567. </dt>
  2568. <dd>
  2569. <p>
  2570. URI
  2571. </p>
  2572. </dd>
  2573. </dl></div>
  2574. <div class="paragraph"><p><strong>aria2.getFiles</strong> <em>gid</em></p></div>
  2575. <div class="paragraph"><p>This method returns file list of the download denoted by <em>gid</em>. <em>gid</em>
  2576. is of type string. The response is of type array and its element is of
  2577. type struct and it contains following keys. The value type is string.</p></div>
  2578. <div class="dlist"><dl>
  2579. <dt class="hdlist1">
  2580. index
  2581. </dt>
  2582. <dd>
  2583. <p>
  2584. Index of file. Starting with 1. This is the same order with the
  2585. files in multi-file torrent.
  2586. </p>
  2587. </dd>
  2588. <dt class="hdlist1">
  2589. path
  2590. </dt>
  2591. <dd>
  2592. <p>
  2593. File path.
  2594. </p>
  2595. </dd>
  2596. <dt class="hdlist1">
  2597. length
  2598. </dt>
  2599. <dd>
  2600. <p>
  2601. File size in bytes.
  2602. </p>
  2603. </dd>
  2604. <dt class="hdlist1">
  2605. selected
  2606. </dt>
  2607. <dd>
  2608. <p>
  2609. "true" if this file is selected by <strong>--select-file</strong> option. If
  2610. <strong>--select-file</strong> is not specified or this is single torrent or no
  2611. torrent download, this value is always "true". Otherwise "false".
  2612. </p>
  2613. </dd>
  2614. </dl></div>
  2615. <div class="paragraph"><p><strong>aria2.getPeers</strong> <em>gid</em></p></div>
  2616. <div class="paragraph"><p>This method returns peer list of the download denoted by <em>gid</em>. <em>gid</em>
  2617. is of type string. This method is for BitTorrent only. The response
  2618. is of type array and its element is of type struct and it contains
  2619. following keys. The value type is string.</p></div>
  2620. <div class="dlist"><dl>
  2621. <dt class="hdlist1">
  2622. peerId
  2623. </dt>
  2624. <dd>
  2625. <p>
  2626. Percent-encoded peer ID.
  2627. </p>
  2628. </dd>
  2629. <dt class="hdlist1">
  2630. ip
  2631. </dt>
  2632. <dd>
  2633. <p>
  2634. IP address of the peer.
  2635. </p>
  2636. </dd>
  2637. <dt class="hdlist1">
  2638. port
  2639. </dt>
  2640. <dd>
  2641. <p>
  2642. Port number of the peer.
  2643. </p>
  2644. </dd>
  2645. <dt class="hdlist1">
  2646. bitfield
  2647. </dt>
  2648. <dd>
  2649. <p>
  2650. Hexadecimal representation of the download progress of the peer. The
  2651. highest bit corresponds to piece index 0. The set bits indicate the
  2652. piece is available and unset bits indicate the piece is missing. The
  2653. spare bits at the end are set to zero.
  2654. </p>
  2655. </dd>
  2656. <dt class="hdlist1">
  2657. amChoking
  2658. </dt>
  2659. <dd>
  2660. <p>
  2661. "true" if this client is choking the peer. Otherwise "false".
  2662. </p>
  2663. </dd>
  2664. <dt class="hdlist1">
  2665. peerChoking
  2666. </dt>
  2667. <dd>
  2668. <p>
  2669. "true" if the peer is choking this client. Otherwise "false".
  2670. </p>
  2671. </dd>
  2672. <dt class="hdlist1">
  2673. downloadSpeed
  2674. </dt>
  2675. <dd>
  2676. <p>
  2677. Download speed (byte/sec) that this client obtains from the peer.
  2678. </p>
  2679. </dd>
  2680. <dt class="hdlist1">
  2681. uploadSpeed
  2682. </dt>
  2683. <dd>
  2684. <p>
  2685. Upload speed(byte/sec) that this client uploads to the peer.
  2686. </p>
  2687. </dd>
  2688. <dt class="hdlist1">
  2689. seeder
  2690. </dt>
  2691. <dd>
  2692. <p>
  2693. "true" is this client is a seeder. Otherwise "false".
  2694. </p>
  2695. </dd>
  2696. </dl></div>
  2697. <div class="paragraph"><p><strong>aria2.tellActive</strong></p></div>
  2698. <div class="paragraph"><p>This method returns the list of active downloads. The respose is of
  2699. type array and its element is the same struct returned by
  2700. <strong>aria2.tellStatus</strong> method.</p></div>
  2701. <div class="paragraph"><p><strong>aria2.tellWaiting</strong> <em>offset, num</em></p></div>
  2702. <div class="paragraph"><p>This method returns the list of waiting download in the range of
  2703. [<em>offset</em>, <em>offset</em>+<em>num</em>). <em>offset</em> is of type integer and specifies
  2704. the offset from the download waiting at the front. <em>num</em> is of type
  2705. integer and specifies the number of downloads to be returned. For
  2706. example, imagine that three downloads "A","B" and "C" are waiting in
  2707. this order. aria2.tellWaiting(0, 1) returns "A". aria2.tellWaiting(1,
  2708. 2) returns "B" and "C". The respose is of type array and its element
  2709. is the same struct returned by <strong>aria2.tellStatus</strong> method.</p></div>
  2710. <div class="paragraph"><p><strong>aria2.changeOption</strong> <em>gid, options</em></p></div>
  2711. <div class="paragraph"><p>This method changes options of the download denoted by <em>gid</em>
  2712. dynamically. <em>gid</em> is of type string. <em>options</em> is of type struct
  2713. and the available options are <strong>max-download-limit</strong> and <strong>max-upload-limit</strong>.
  2714. This method returns "OK" for success.</p></div>
  2715. <div class="paragraph"><p><strong>aria2.changeGlobalOption</strong> <em>options</em></p></div>
  2716. <div class="paragraph"><p>This method changes global options dynamically. <em>options</em> is of type
  2717. struct and the available options are <strong>max-concurrent-downloads</strong>,
  2718. <strong>max-overall-download-limit</strong> and <strong>max-overall-upload-limit</strong>. This
  2719. method returns "OK" for success.</p></div>
  2720. <div class="paragraph"><p><strong>aria2.purgeDownloadResult</strong></p></div>
  2721. <div class="paragraph"><p>This method purges completed/error/removed downloads to free memory.
  2722. This method returns "OK".</p></div>
  2723. <div class="paragraph"><p><strong>aria2.getVersion</strong></p></div>
  2724. <div class="paragraph"><p>This method returns version of the program and the list of enabled
  2725. features. The response is of type struct and contains following keys.</p></div>
  2726. <div class="dlist"><dl>
  2727. <dt class="hdlist1">
  2728. version
  2729. </dt>
  2730. <dd>
  2731. <p>
  2732. Version number of the program in string.
  2733. </p>
  2734. </dd>
  2735. <dt class="hdlist1">
  2736. enabledFeatures
  2737. </dt>
  2738. <dd>
  2739. <p>
  2740. List of enabled features. Each feature name is of type string.
  2741. </p>
  2742. </dd>
  2743. </dl></div>
  2744. <h3 id="_error_handling">Error Handling</h3><div style="clear:left"></div>
  2745. <div class="paragraph"><p>In case of error, aria2 returns faultCode=1 and the error message in
  2746. faultString.</p></div>
  2747. <h3 id="_options_2">Options</h3><div style="clear:left"></div>
  2748. <div class="paragraph"><p>Same options for <strong>-i</strong> list are available. See <strong>Input File</strong> subsection
  2749. for complete list of options.</p></div>
  2750. <div class="paragraph"><p>In the option struct, name element is option name(without preceeding
  2751. "--") and value element is argument as string.</p></div>
  2752. <div class="listingblock">
  2753. <div class="content">
  2754. <pre><tt>&lt;struct&gt;
  2755. &lt;member&gt;
  2756. &lt;name&gt;split&lt;/name&gt;
  2757. &lt;value&gt;&lt;string&gt;1&lt;/string&gt;&lt;/value&gt;
  2758. &lt;/member&gt;
  2759. &lt;member&gt;
  2760. &lt;name&gt;http-proxy&lt;/name&gt;
  2761. &lt;value&gt;&lt;string&gt;http://proxy/&lt;/string&gt;&lt;/value&gt;
  2762. &lt;/member&gt;
  2763. &lt;/struct&gt;</tt></pre>
  2764. </div></div>
  2765. <div class="paragraph"><p><strong>header</strong> and <strong>index-out</strong> option are allowed multiple times in
  2766. command-line. Since name should be unique in struct(many XML-RPC
  2767. library implementation uses hash or dict for struct), single string is
  2768. not enough. To overcome this situation, they can take array as value
  2769. as well as string.</p></div>
  2770. <div class="listingblock">
  2771. <div class="content">
  2772. <pre><tt>&lt;struct&gt;
  2773. &lt;member&gt;
  2774. &lt;name&gt;header&lt;/name&gt;
  2775. &lt;value&gt;
  2776. &lt;array&gt;
  2777. &lt;data&gt;
  2778. &lt;value&gt;&lt;string&gt;Accept-Language: ja&lt;/string&gt;&lt;/value&gt;
  2779. &lt;value&gt;&lt;string&gt;Accept-Charset: utf-8&lt;/string&gt;&lt;/value&gt;
  2780. &lt;/data&gt;
  2781. &lt;/array&gt;
  2782. &lt;/value&gt;
  2783. &lt;/member&gt;
  2784. &lt;/struct&gt;</tt></pre>
  2785. </div></div>
  2786. <h3 id="_sample_xml_rpc_client_code">Sample XML-RPC Client Code</h3><div style="clear:left"></div>
  2787. <div class="paragraph"><p>The following Ruby script adds <em>http://localhost/aria2.tar.bz2</em> to
  2788. aria2c operated on localhost with option <strong>--dir</strong>=<em>/downloads</em> and
  2789. prints its reponse.</p></div>
  2790. <div class="listingblock">
  2791. <div class="content">
  2792. <pre><tt>#!/usr/bin/env ruby
  2793. require 'xmlrpc/client'
  2794. require 'pp'
  2795. client=XMLRPC::Client.new2("http://localhost:6800/rpc")
  2796. options={ "dir" =&gt; "/downloads" }
  2797. result=client.call("aria2.addUri", [ "http://localhost/aria2.tar.bz2" ], options)
  2798. pp result</tt></pre>
  2799. </div></div>
  2800. </div>
  2801. <h2 id="_example">EXAMPLE</h2>
  2802. <div class="sectionbody">
  2803. <h3 id="_http_ftp_segmented_download">HTTP/FTP Segmented Download</h3><div style="clear:left"></div>
  2804. <h4 id="_download_a_file">Download a file</h4>
  2805. <div class="listingblock">
  2806. <div class="content">
  2807. <pre><tt>aria2c "http://host/file.zip"</tt></pre>
  2808. </div></div>
  2809. <div class="admonitionblock">
  2810. <table><tr>
  2811. <td class="icon">
  2812. <div class="title">Note</div>
  2813. </td>
  2814. <td class="content">aria2 uses 5 connections to download 1 file by default.</td>
  2815. </tr></table>
  2816. </div>
  2817. <h4 id="_download_a_file_using_1_connection">Download a file using 1 connection</h4>
  2818. <div class="listingblock">
  2819. <div class="content">
  2820. <pre><tt>aria2c -s1 "http://host/file.zip"</tt></pre>
  2821. </div></div>
  2822. <div class="admonitionblock">
  2823. <table><tr>
  2824. <td class="icon">
  2825. <div class="title">Note</div>
  2826. </td>
  2827. <td class="content">aria2 uses 5 connections to download 1 file by default.
  2828. -s1 limits the number of connections to just 1.</td>
  2829. </tr></table>
  2830. </div>
  2831. <div class="admonitionblock">
  2832. <table><tr>
  2833. <td class="icon">
  2834. <div class="title">Note</div>
  2835. </td>
  2836. <td class="content">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.</td>
  2837. </tr></table>
  2838. </div>
  2839. <h4 id="_download_a_file_from_2_different_http_servers">Download a file from 2 different HTTP servers</h4>
  2840. <div class="listingblock">
  2841. <div class="content">
  2842. <pre><tt>aria2c "http://host/file.zip" "http://mirror/file.zip"</tt></pre>
  2843. </div></div>
  2844. <h4 id="_download_a_file_from_http_and_ftp_servers">Download a file from HTTP and FTP servers</h4>
  2845. <div class="listingblock">
  2846. <div class="content">
  2847. <pre><tt>aria2c "http://host1/file.zip" "ftp://host2/file.zip"</tt></pre>
  2848. </div></div>
  2849. <h4 id="_download_files_listed_in_a_text_file_concurrently">Download files listed in a text file concurrently</h4>
  2850. <div class="listingblock">
  2851. <div class="content">
  2852. <pre><tt>aria2c -ifiles.txt -j2</tt></pre>
  2853. </div></div>
  2854. <div class="admonitionblock">
  2855. <table><tr>
  2856. <td class="icon">
  2857. <div class="title">Note</div>
  2858. </td>
  2859. <td class="content">-j option specifies the number of parallel downloads.</td>
  2860. </tr></table>
  2861. </div>
  2862. <h4 id="_using_proxy">Using proxy</h4>
  2863. <div class="paragraph"><p>For HTTP:</p></div>
  2864. <div class="listingblock">
  2865. <div class="content">
  2866. <pre><tt>aria2c --http-proxy="http://proxy:8080" "http://host/file"</tt></pre>
  2867. </div></div>
  2868. <div class="paragraph"><p>For FTP:</p></div>
  2869. <div class="listingblock">
  2870. <div class="content">
  2871. <pre><tt>aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"</tt></pre>
  2872. </div></div>
  2873. <div class="admonitionblock">
  2874. <table><tr>
  2875. <td class="icon">
  2876. <div class="title">Note</div>
  2877. </td>
  2878. <td class="content">See <strong>--http-proxy</strong>, <strong>--https-proxy</strong>, <strong>--ftp-proxy</strong> and <strong>--all-proxy</strong> for
  2879. details.
  2880. You can specify proxy in the environment variables. See <strong>ENVIRONMENT</strong> section.</td>
  2881. </tr></table>
  2882. </div>
  2883. <h4 id="_proxy_with_authorization">Proxy with authorization</h4>
  2884. <div class="listingblock">
  2885. <div class="content">
  2886. <pre><tt>aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"</tt></pre>
  2887. </div></div>
  2888. <h3 id="_metalink_download">Metalink Download</h3><div style="clear:left"></div>
  2889. <h4 id="_download_files_with_remote_metalink">Download files with remote Metalink</h4>
  2890. <div class="listingblock">
  2891. <div class="content">
  2892. <pre><tt>aria2c --follow-metalink=mem "http://host/file.metalink"</tt></pre>
  2893. </div></div>
  2894. <h4 id="_download_using_a_local_metalink_file">Download using a local metalink file</h4>
  2895. <div class="listingblock">
  2896. <div class="content">
  2897. <pre><tt>aria2c -p --lowest-speed-limit=4000 file.metalink</tt></pre>
  2898. </div></div>
  2899. <div class="admonitionblock">
  2900. <table><tr>
  2901. <td class="icon">
  2902. <div class="title">Note</div>
  2903. </td>
  2904. <td class="content">To pause a download, press Ctrl-C.
  2905. You can resume the transfer by running aria2c with the same argument in the same
  2906. directory.</td>
  2907. </tr></table>
  2908. </div>
  2909. <h4 id="_download_several_local_metalink_files">Download several local metalink files</h4>
  2910. <div class="listingblock">
  2911. <div class="content">
  2912. <pre><tt>aria2c -j2 file1.metalink file2.metalink</tt></pre>
  2913. </div></div>
  2914. <h4 id="_download_only_selected_files_using_index">Download only selected files using index</h4>
  2915. <div class="listingblock">
  2916. <div class="content">
  2917. <pre><tt>aria2c --select-file=1-4,8 file.metalink</tt></pre>
  2918. </div></div>
  2919. <div class="admonitionblock">
  2920. <table><tr>
  2921. <td class="icon">
  2922. <div class="title">Note</div>
  2923. </td>
  2924. <td class="content">The index is printed to the console using -S option.</td>
  2925. </tr></table>
  2926. </div>
  2927. <h4 id="_download_a_file_using_a_local_metalink_file_with_user_preference">Download a file using a local .metalink file with user preference</h4>
  2928. <div class="listingblock">
  2929. <div class="content">
  2930. <pre><tt>aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink</tt></pre>
  2931. </div></div>
  2932. <h3 id="_bittorrent_download">BitTorrent Download</h3><div style="clear:left"></div>
  2933. <h4 id="_download_files_from_remote_bittorrent_file">Download files from remote BitTorrent file</h4>
  2934. <div class="listingblock">
  2935. <div class="content">
  2936. <pre><tt>aria2c --follow-torrent=mem "http://host/file.torrent"</tt></pre>
  2937. </div></div>
  2938. <h4 id="_download_using_a_local_torrent_file">Download using a local torrent file</h4>
  2939. <div class="listingblock">
  2940. <div class="content">
  2941. <pre><tt>aria2c --max-upload-limit=40K file.torrent</tt></pre>
  2942. </div></div>
  2943. <div class="admonitionblock">
  2944. <table><tr>
  2945. <td class="icon">
  2946. <div class="title">Note</div>
  2947. </td>
  2948. <td class="content">--max-upload-limit specifies the max of upload rate.</td>
  2949. </tr></table>
  2950. </div>
  2951. <div class="admonitionblock">
  2952. <table><tr>
  2953. <td class="icon">
  2954. <div class="title">Note</div>
  2955. </td>
  2956. <td class="content">To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory.</td>
  2957. </tr></table>
  2958. </div>
  2959. <h4 id="_download_2_torrents">Download 2 torrents</h4>
  2960. <div class="listingblock">
  2961. <div class="content">
  2962. <pre><tt>aria2c -j2 file1.torrent file2.torrent</tt></pre>
  2963. </div></div>
  2964. <h4 id="_download_a_file_using_torrent_and_http_ftp_server">Download a file using torrent and HTTP/FTP server</h4>
  2965. <div class="listingblock">
  2966. <div class="content">
  2967. <pre><tt>aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"</tt></pre>
  2968. </div></div>
  2969. <div class="admonitionblock">
  2970. <table><tr>
  2971. <td class="icon">
  2972. <div class="title">Note</div>
  2973. </td>
  2974. <td class="content">Downloading multi file torrent with HTTP/FTP is not supported.</td>
  2975. </tr></table>
  2976. </div>
  2977. <h4 id="_download_only_selected_files_using_index_usually_called_selectable_download">Download only selected files using index(usually called "selectable download")</h4>
  2978. <div class="listingblock">
  2979. <div class="content">
  2980. <pre><tt>aria2c --select-file=1-4,8 file.torrent</tt></pre>
  2981. </div></div>
  2982. <div class="admonitionblock">
  2983. <table><tr>
  2984. <td class="icon">
  2985. <div class="title">Note</div>
  2986. </td>
  2987. <td class="content">The index is printed to the console using -S option.</td>
  2988. </tr></table>
  2989. </div>
  2990. <h4 id="_specify_output_filename">Specify output filename</h4>
  2991. <div class="paragraph"><p>To specify output filename for BitTorrent downloads, you need to know
  2992. the index of file in torrent file using <strong>-S</strong> option. For example, the
  2993. output looks like this:</p></div>
  2994. <div class="listingblock">
  2995. <div class="content">
  2996. <pre><tt>idx|path/length
  2997. ===+======================
  2998. 1|dist/base-2.6.18.iso
  2999. |99.9MiB
  3000. ---+----------------------
  3001. 2|dist/driver-2.6.18.iso
  3002. |169.0MiB
  3003. ---+----------------------</tt></pre>
  3004. </div></div>
  3005. <div class="paragraph"><p>To save <em>dist/base-2.6.18.iso</em> in <em>/tmp/mydir/base.iso</em> and
  3006. <em>dist/driver-2.6.18.iso</em> in <em>/tmp/dir/driver.iso</em>, use the following
  3007. command:</p></div>
  3008. <div class="listingblock">
  3009. <div class="content">
  3010. <pre><tt>aria2c --dir=/tmp --index-out=1=mydir/base.iso --index-out=2=dir/driver.iso file.torrent</tt></pre>
  3011. </div></div>
  3012. <h4 id="_change_the_listening_port_for_incoming_peer">Change the listening port for incoming peer</h4>
  3013. <div class="listingblock">
  3014. <div class="content">
  3015. <pre><tt>aria2c --listen-port=7000-7001,8000 file.torrent</tt></pre>
  3016. </div></div>
  3017. <div class="admonitionblock">
  3018. <table><tr>
  3019. <td class="icon">
  3020. <div class="title">Note</div>
  3021. </td>
  3022. <td class="content">Since aria2 doesn&#8217;t configure firewall or router for port forwarding, it&#8217;s up
  3023. to you to do it manually.</td>
  3024. </tr></table>
  3025. </div>
  3026. <h4 id="_specify_the_condition_to_stop_program_after_torrent_download_finished">Specify the condition to stop program after torrent download finished</h4>
  3027. <div class="listingblock">
  3028. <div class="content">
  3029. <pre><tt>aria2c --seed-time=120 --seed-ratio=1.0 file.torrent</tt></pre>
  3030. </div></div>
  3031. <div class="admonitionblock">
  3032. <table><tr>
  3033. <td class="icon">
  3034. <div class="title">Note</div>
  3035. </td>
  3036. <td class="content">In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.</td>
  3037. </tr></table>
  3038. </div>
  3039. <h4 id="_throttle_upload_speed">Throttle upload speed</h4>
  3040. <div class="listingblock">
  3041. <div class="content">
  3042. <pre><tt>aria2c --max-upload-limit=100K file.torrent</tt></pre>
  3043. </div></div>
  3044. <h4 id="_enable_dht">Enable DHT</h4>
  3045. <div class="listingblock">
  3046. <div class="content">
  3047. <pre><tt>aria2c --enable-dht --dht-listen-port=6881 file.torrent</tt></pre>
  3048. </div></div>
  3049. <div class="admonitionblock">
  3050. <table><tr>
  3051. <td class="icon">
  3052. <div class="title">Note</div>
  3053. </td>
  3054. <td class="content">DHT uses udp port. Since aria2 doesn&#8217;t configure firewall or router for port
  3055. forwarding, it&#8217;s up to you to do it manually.</td>
  3056. </tr></table>
  3057. </div>
  3058. <h3 id="_more_advanced_http_features">More advanced HTTP features</h3><div style="clear:left"></div>
  3059. <h4 id="_load_cookies">Load cookies</h4>
  3060. <div class="listingblock">
  3061. <div class="content">
  3062. <pre><tt>aria2c --load-cookies=cookies.txt "http://host/file.zip"</tt></pre>
  3063. </div></div>
  3064. <div class="admonitionblock">
  3065. <table><tr>
  3066. <td class="icon">
  3067. <div class="title">Note</div>
  3068. </td>
  3069. <td class="content">You can use Firefox/Mozilla&#8217;s cookie file without modification.</td>
  3070. </tr></table>
  3071. </div>
  3072. <h4 id="_resume_download_started_by_web_browsers_or_another_programs">Resume download started by web browsers or another programs</h4>
  3073. <div class="listingblock">
  3074. <div class="content">
  3075. <pre><tt>aria2c -c -s2 "http://host/partiallydownloadedfile.zip"</tt></pre>
  3076. </div></div>
  3077. <h4 id="_client_certificate_authorization_for_ssl_tls">Client certificate authorization for SSL/TLS</h4>
  3078. <div class="listingblock">
  3079. <div class="content">
  3080. <pre><tt>aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file</tt></pre>
  3081. </div></div>
  3082. <div class="admonitionblock">
  3083. <table><tr>
  3084. <td class="icon">
  3085. <div class="title">Note</div>
  3086. </td>
  3087. <td class="content">The file specified in <strong>--private-key</strong> must be decrypted. The behavior when
  3088. encrypted one is given is undefined.</td>
  3089. </tr></table>
  3090. </div>
  3091. <h4 id="_verify_peer_in_ssl_tls_using_given_ca_certificates">Verify peer in SSL/TLS using given CA certificates</h4>
  3092. <div class="listingblock">
  3093. <div class="content">
  3094. <pre><tt>aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file</tt></pre>
  3095. </div></div>
  3096. <h3 id="_and_more_advanced_features">And more advanced features</h3><div style="clear:left"></div>
  3097. <h4 id="_throttle_download_speed">Throttle download speed</h4>
  3098. <div class="listingblock">
  3099. <div class="content">
  3100. <pre><tt>aria2c --max-download-limit=100K file.metalink</tt></pre>
  3101. </div></div>
  3102. <h4 id="_repair_a_damaged_download_using_v_option">Repair a damaged download using -V option</h4>
  3103. <div class="listingblock">
  3104. <div class="content">
  3105. <pre><tt>aria2c -V file.metalink</tt></pre>
  3106. </div></div>
  3107. <div class="admonitionblock">
  3108. <table><tr>
  3109. <td class="icon">
  3110. <div class="title">Note</div>
  3111. </td>
  3112. <td class="content">This option is only available used with BitTorrent or metalink with chunk
  3113. checksums.</td>
  3114. </tr></table>
  3115. </div>
  3116. <h4 id="_drop_connection_if_download_speed_is_lower_than_specified_value">Drop connection if download speed is lower than specified value</h4>
  3117. <div class="listingblock">
  3118. <div class="content">
  3119. <pre><tt>aria2c --lowest-speed-limit=10K file.metalink</tt></pre>
  3120. </div></div>
  3121. <h4 id="_parameterized_uri_support">Parameterized URI support</h4>
  3122. <div class="paragraph"><p>You can specify set of parts:</p></div>
  3123. <div class="listingblock">
  3124. <div class="content">
  3125. <pre><tt>aria2c -P "http://{host1,host2,host3}/file.iso"</tt></pre>
  3126. </div></div>
  3127. <div class="paragraph"><p>You can specify numeric sequence:</p></div>
  3128. <div class="listingblock">
  3129. <div class="content">
  3130. <pre><tt>aria2c -Z -P "http://host/image[000-100].png"</tt></pre>
  3131. </div></div>
  3132. <div class="admonitionblock">
  3133. <table><tr>
  3134. <td class="icon">
  3135. <div class="title">Note</div>
  3136. </td>
  3137. <td class="content">-Z option is required if the all URIs don&#8217;t point to the same file, such as the above example.</td>
  3138. </tr></table>
  3139. </div>
  3140. <div class="paragraph"><p>You can specify step counter:</p></div>
  3141. <div class="listingblock">
  3142. <div class="content">
  3143. <pre><tt>aria2c -Z -P "http://host/image[A-Z:2].png"</tt></pre>
  3144. </div></div>
  3145. <h4 id="_parallel_downloads_of_arbitrary_number_of_url_metalink_torrent">Parallel downloads of arbitrary number of URL,metalink,torrent</h4>
  3146. <div class="listingblock">
  3147. <div class="content">
  3148. <pre><tt>aria2c -j3 -Z "http://host/file1" file2.torrent file3.metalink</tt></pre>
  3149. </div></div>
  3150. <h4 id="_bittorrent_encryption">BitTorrent Encryption</h4>
  3151. <div class="paragraph"><p>Encrypt whole payload using ARC4:</p></div>
  3152. <div class="listingblock">
  3153. <div class="content">
  3154. <pre><tt>aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent</tt></pre>
  3155. </div></div>
  3156. </div>
  3157. <h2 id="_see_also">SEE ALSO</h2>
  3158. <div class="sectionbody">
  3159. <div class="paragraph"><p>Project Web Site: <a href="http://aria2.sourceforge.net/">http://aria2.sourceforge.net/</a></p></div>
  3160. <div class="paragraph"><p>aria2 Wiki: <a href="http://sourceforge.net/apps/trac/aria2/wiki">http://sourceforge.net/apps/trac/aria2/wiki</a></p></div>
  3161. <div class="paragraph"><p>Metalink Homepage: <a href="http://www.metalinker.org/">http://www.metalinker.org/</a></p></div>
  3162. </div>
  3163. <h2 id="_copyright">COPYRIGHT</h2>
  3164. <div class="sectionbody">
  3165. <div class="paragraph"><p>Copyright &#169; 2006, 2009 Tatsuhiro Tsujikawa</p></div>
  3166. <div class="paragraph"><p>This program is free software; you can redistribute it and/or modify
  3167. it under the terms of the GNU General Public License as published by
  3168. the Free Software Foundation; either version 2 of the License, or
  3169. (at your option) any later version.</p></div>
  3170. <div class="paragraph"><p>This program is distributed in the hope that it will be useful,
  3171. but WITHOUT ANY WARRANTY; without even the implied warranty of
  3172. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3173. GNU General Public License for more details.</p></div>
  3174. <div class="paragraph"><p>You should have received a copy of the GNU General Public License
  3175. along with this program; if not, write to the Free Software
  3176. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</p></div>
  3177. <div class="paragraph"><p>In addition, as a special exception, the copyright holders give
  3178. permission to link the code of portions of this program with the
  3179. OpenSSL library under certain conditions as described in each
  3180. individual source file, and distribute linked combinations
  3181. including the two.
  3182. You must obey the GNU General Public License in all respects
  3183. for all of the code used other than OpenSSL. If you modify
  3184. file(s) with this exception, you may extend this exception to your
  3185. version of the file(s), but you are not obligated to do so. If you
  3186. do not wish to do so, delete this exception statement from your
  3187. version. If you delete this exception statement from all source
  3188. files in the program, then also delete it here.</p></div>
  3189. </div>
  3190. <div id="footer">
  3191. <div id="footer-text">
  3192. Last updated 2009-09-17 23:43:49 JST
  3193. </div>
  3194. </div>
  3195. </body>
  3196. </html>