You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

216 lines
9.4 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>The Command Line </title>
  8. <meta name="viewport" content="width=device-width">
  9. <meta name="title" content="The Command Line ">
  10. <meta name="generator" content="docfx 2.56.2.0">
  11. <link rel="shortcut icon" href="../favicon.ico">
  12. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  13. <link rel="stylesheet" href="../styles/docfx.css">
  14. <link rel="stylesheet" href="../styles/main.css">
  15. <link rel="stylesheet" href="../styles/fix.css">
  16. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  17. <meta property="docfx:navrel" content="../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../">
  20. <meta property="docfx:newtab" content="true">
  21. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../index.html">
  34. <img id="logo" class="svg" src="../logo.svg" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="articles.command_line">
  73. <h1 id="the-command-line">The Command Line</h1>
  74. <p>BSIPA has 2 command lines: the installer, and the game.</p>
  75. <p>Their documentation is below.</p>
  76. <div class="tabGroup" id="tabgroup_8icGlBCLD4">
  77. <ul role="tablist">
  78. <li role="presentation">
  79. <a href="#tabpanel_8icGlBCLD4_installer" role="tab" aria-controls="tabpanel_8icGlBCLD4_installer" data-tab="installer" tabindex="0" aria-selected="true">The Installer (<code>IPA.exe</code>)</a>
  80. </li>
  81. <li role="presentation">
  82. <a href="#tabpanel_8icGlBCLD4_game" role="tab" aria-controls="tabpanel_8icGlBCLD4_game" data-tab="game" tabindex="-1">The Game</a>
  83. </li>
  84. </ul>
  85. <section id="tabpanel_8icGlBCLD4_installer" role="tabpanel" data-tab="installer">
  86. <p>The installer has quite a few options, which are documented inline with the <code>-h</code> or <code>--help</code> flag.</p>
  87. <p>This is what it currently looks like:</p>
  88. <pre><code name="IPA command line" title="the result of IPA.exe -h">usage:
  89. IPA.exe [FLAGS] [ARGUMENTS]
  90. flags:
  91. -h, --help
  92. prints this message
  93. -w, --waitfor=PID
  94. waits for the specified PID to exit
  95. -f, --force
  96. forces the operation to go through
  97. -r, --revert
  98. reverts the IPA installation
  99. -n, --nowait
  100. doesn&#39;t wait for user input after the operation
  101. -s, --start=ARGUMENTS
  102. uses the specified arguments to start the game after the patch/unpatch
  103. -l, --launch
  104. uses positional parameters as arguments to start the game after patch/unpatch
  105. -R, --no-revert
  106. prevents a normal installation from first reverting
  107. </code></pre></section>
  108. <section id="tabpanel_8icGlBCLD4_game" role="tabpanel" data-tab="game" aria-hidden="true" hidden="hidden">
  109. <p>The game <em>also</em> gets quite a few command line options, though there isn&#39;t anything as convenient as a help page for them.</p>
  110. <p>Here&#39;s a quick list of what they are and what they do.</p>
  111. <ul>
  112. <li><p><code>--verbose</code></p>
  113. <blockquote><p>Makes a console appear with log information at startup.</p>
  114. </blockquote>
  115. </li>
  116. <li><p><code>--debug</code></p>
  117. <blockquote><p>Enables the loading of debug information in Mono. The debugging information must be in the portable PDB format,
  118. in the same location as the DLL that it&#39;s for.</p>
  119. <p>This option also forces BSIPA to show all debug messages in the console, as well as where they were called.</p>
  120. <p>This overrides the config settings <code>Debug.ShowDebug</code> and <code>Debug.ShowCallSource</code>.</p>
  121. </blockquote>
  122. </li>
  123. <li><p><code>--trace</code></p>
  124. <blockquote><p>Enables trace level messages. By default, they do not ever enter the message queue, and thus cost almost nothing.
  125. When this or the config option is used, they are added and logged with the same rules as Debug messages.</p>
  126. <p>This overrides the config setting <code>Debug.ShowTrace</code>.</p>
  127. </blockquote>
  128. </li>
  129. <li><p><code>--mono-debug</code></p>
  130. <blockquote><p>Enables the built-in Mono soft debugger engine.</p>
  131. <p>By default, it acts as a client, and requires that there be a soft
  132. debugger server running on port 10000 on <code>localhost</code>.</p>
  133. <p>Implies <code>--debug</code>.</p>
  134. </blockquote>
  135. </li>
  136. <li><p><code>--server</code></p>
  137. <blockquote><p>Does nothing on its own.</p>
  138. <p>When paired with <code>--mono-debug</code>, this option makes the Mono soft debugger act in server mode. It begins listening on
  139. port 10000 on any address, and will pause startup (with no window) until a debugger is connected. I recommend using
  140. SDB, but that is a command line debugger and a lot of people don&#39;t care for those.</p>
  141. </blockquote>
  142. </li>
  143. <li><p><code>--no-yeet</code></p>
  144. <blockquote><p>Disables mod yeeting.</p>
  145. <p>By default, whenever BSIPA detects that the game is now running a newer version than previous runs, it will move all
  146. mods to another folder and not load them. (They still get checked for updates though.) When this is enabled, that
  147. behaviour is disabled.</p>
  148. <p>Overrides the config setting <code>YeetMods</code>.</p>
  149. </blockquote>
  150. </li>
  151. <li><p><code>--condense-logs</code></p>
  152. <blockquote><p>Reduces the number of log files BSIPA will output for a given session.</p>
  153. <p>By default, BSIPA will create a subfolder in the <code>Logs</code> folder for each mod sublog, as well as each mod. This disables
  154. that behaviour, and restricts it to only create a global log and mod logs.</p>
  155. <p>Overrides the config setting <code>Debug.CondenseModLogs</code>.</p>
  156. </blockquote>
  157. </li>
  158. <li><p><code>--no-updates</code></p>
  159. <blockquote><p>Disables automatic updating.</p>
  160. <p>By default, BSIPA will check <a href="http://beatmods.com">BeatMods</a> for all of the loaded mods to see if there is a new version
  161. avaliable. If there is, it will be downloaded and installed on the next run. This flag disables that behaviour.</p>
  162. <p>Overrides the config settings <code>Updates.AutoCheckUpdates</code> and <code>Updates.AutoUpdate</code>.</p>
  163. </blockquote>
  164. </li>
  165. </ul>
  166. </section>
  167. </div>
  168. </article>
  169. </div>
  170. <div class="hidden-sm col-md-2" role="complementary">
  171. <div class="sideaffix">
  172. <div class="contribution">
  173. <ul class="nav">
  174. <li>
  175. <a href="https://github.com/bsmg/BeatSaber-IPA-Reloaded/blob/7d39fdbb85780b34dd16449637e522cf76e092d9/docs/articles/command-line.md/#L1" class="contribution-link">Improve this Doc</a>
  176. </li>
  177. </ul>
  178. </div>
  179. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  180. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  181. </nav>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <footer>
  187. <div class="grad-bottom"></div>
  188. <div class="footer">
  189. <div class="container">
  190. <span class="pull-right">
  191. <a href="#top">Back to top</a>
  192. </span>
  193. <span>Generated by <strong>DocFX</strong></span>
  194. </div>
  195. </div>
  196. </footer>
  197. </div>
  198. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  199. <script type="text/javascript" src="../styles/docfx.js"></script>
  200. <script type="text/javascript" src="../styles/main.js"></script>
  201. </body>
  202. </html>