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.

223 lines
9.9 KiB

6 months ago
  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.59.4.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">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></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_lvD3mivo-k">
  77. <ul role="tablist">
  78. <li role="presentation">
  79. <a href="#tabpanel_lvD3mivo-k_installer" role="tab" aria-controls="tabpanel_lvD3mivo-k_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_lvD3mivo-k_game" role="tab" aria-controls="tabpanel_lvD3mivo-k_game" data-tab="game" tabindex="-1">The Game</a>
  83. </li>
  84. </ul>
  85. <section id="tabpanel_lvD3mivo-k_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. -v, --version
  94. prints the version that will be installed and is currently installed
  95. -w, --waitfor=PID
  96. waits for the specified PID to exit
  97. -f, --force
  98. forces the operation to go through
  99. -r, --revert
  100. reverts the IPA installation
  101. -n, --nowait
  102. doesn&#39;t wait for user input after the operation
  103. -s, --start=ARGUMENTS
  104. uses the specified arguments to start the game after the patch/unpatch
  105. -l, --launch
  106. uses positional parameters as arguments to start the game after patch/unpatch
  107. -R, --no-revert
  108. prevents a normal installation from first reverting
  109. </code></pre></section>
  110. <section id="tabpanel_lvD3mivo-k_game" role="tabpanel" data-tab="game" aria-hidden="true" hidden="hidden">
  111. <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>
  112. <p>Here&#39;s a quick list of what they are and what they do.</p>
  113. <ul>
  114. <li><p><code>--verbose</code></p>
  115. <blockquote><p>Makes a console appear with log information at startup.</p>
  116. <p>Optionally, an explicit process ID can be specified to start the game with an external console. This allows it to be
  117. launched via Steam without being interrupted by its &quot;Allow game launch?&quot; if launched directly from the <code>.exe</code>.</p>
  118. <p>Example for Beat Saber using PowerShell:</p>
  119. <pre><code>.\steam.exe -applaunch 620980 --verbose $PID
  120. </code></pre><p>Do note that this isn&#39;t going to work from an elevated terminal.</p>
  121. </blockquote>
  122. </li>
  123. <li><p><code>--debug</code></p>
  124. <blockquote><p>Enables the loading of debug information in Mono. The debugging information must be in the portable PDB format,
  125. in the same location as the DLL that it&#39;s for.</p>
  126. <p>This option also forces BSIPA to show all debug messages in the console, as well as where they were called.</p>
  127. <p>This overrides the config settings <code>Debug.ShowDebug</code> and <code>Debug.ShowCallSource</code>.</p>
  128. </blockquote>
  129. </li>
  130. <li><p><code>--trace</code></p>
  131. <blockquote><p>Enables trace level messages. By default, they do not ever enter the message queue, and thus cost almost nothing.
  132. When this or the config option is used, they are added and logged with the same rules as Debug messages.</p>
  133. <p>This overrides the config setting <code>Debug.ShowTrace</code>.</p>
  134. </blockquote>
  135. </li>
  136. <li><p><code>--mono-debug</code></p>
  137. <blockquote><p>Enables the built-in Mono soft debugger engine.</p>
  138. <p>By default, it acts as a client, and requires that there be a soft
  139. debugger server running on port 10000 on <code>localhost</code>.</p>
  140. <p>Implies <code>--debug</code>.</p>
  141. </blockquote>
  142. </li>
  143. <li><p><code>--server</code></p>
  144. <blockquote><p>Does nothing on its own.</p>
  145. <p>When paired with <code>--mono-debug</code>, this option makes the Mono soft debugger act in server mode. It begins listening on
  146. port 10000 on any address, and will pause startup (with no window) until a debugger is connected. I recommend using
  147. SDB, but that is a command line debugger and a lot of people don&#39;t care for those.</p>
  148. </blockquote>
  149. </li>
  150. <li><p><code>--no-yeet</code></p>
  151. <blockquote><p>Disables mod yeeting.</p>
  152. <p>By default, whenever BSIPA detects that the game is now running a newer version than previous runs, it will move all
  153. mods to another folder and not load them. (They still get checked for updates though.) When this is enabled, that
  154. behaviour is disabled.</p>
  155. <p>Overrides the config setting <code>YeetMods</code>.</p>
  156. </blockquote>
  157. </li>
  158. <li><p><code>--condense-logs</code></p>
  159. <blockquote><p>Reduces the number of log files BSIPA will output for a given session.</p>
  160. <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
  161. that behaviour, and restricts it to only create a global log and mod logs.</p>
  162. <p>Overrides the config setting <code>Debug.CondenseModLogs</code>.</p>
  163. </blockquote>
  164. </li>
  165. <li><p><code>--plugin-logs</code></p>
  166. <blockquote><p>Causes each plugins&#39; log messages to be written to files in their own folder for ease of debugging.</p>
  167. <p>This was the default through 4.1.6, however is now disabled by default.</p>
  168. <p>Overrides the config setting <code>Debug.CreateModLogs</code>.</p>
  169. </blockquote>
  170. </li>
  171. </ul>
  172. </section>
  173. </div>
  174. </article>
  175. </div>
  176. <div class="hidden-sm col-md-2" role="complementary">
  177. <div class="sideaffix">
  178. <div class="contribution">
  179. <ul class="nav">
  180. <li>
  181. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/2236b34fe80ae08107933a57221e788cccbc4668/docs/articles/command-line.md/#L1" class="contribution-link">Improve this Doc</a>
  182. </li>
  183. </ul>
  184. </div>
  185. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  186. <h5>In This Article</h5>
  187. <div></div>
  188. </nav>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. <footer>
  194. <div class="grad-bottom"></div>
  195. <div class="footer">
  196. <div class="container">
  197. <span class="pull-right">
  198. <a href="#top">Back to top</a>
  199. </span>
  200. <span>Generated by <strong>DocFX</strong></span>
  201. </div>
  202. </div>
  203. </footer>
  204. </div>
  205. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  206. <script type="text/javascript" src="../styles/docfx.js"></script>
  207. <script type="text/javascript" src="../styles/main.js"></script>
  208. </body>
  209. </html>