command_line.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <!DOCTYPE html>
  2. <html class="writer-html4" lang="en" >
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Command line reference &mdash; Crown Manual 0.40.0 documentation</title>
  7. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <!--[if lt IE 9]>
  10. <script src="_static/js/html5shiv.min.js"></script>
  11. <![endif]-->
  12. <script type="text/javascript">
  13. var DOCUMENTATION_OPTIONS = {
  14. URL_ROOT:'./',
  15. VERSION:'0.40.0',
  16. LANGUAGE:'None',
  17. COLLAPSE_INDEX:false,
  18. FILE_SUFFIX:'.html',
  19. HAS_SOURCE: true,
  20. SOURCELINK_SUFFIX: ''
  21. };
  22. </script>
  23. <script type="text/javascript" src="_static/jquery.js"></script>
  24. <script type="text/javascript" src="_static/underscore.js"></script>
  25. <script type="text/javascript" src="_static/doctools.js"></script>
  26. <script type="text/javascript" src="_static/js/theme.js"></script>
  27. <link rel="copyright" title="Copyright" href="copyright.html" />
  28. <link rel="next" title="License" href="copyright.html" />
  29. <link rel="prev" title="boot.config reference" href="boot_config.html" />
  30. </head>
  31. <body class="wy-body-for-nav">
  32. <div class="wy-grid-for-nav">
  33. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  34. <div class="wy-side-scroll">
  35. <div class="wy-side-nav-search" >
  36. <a href="index.html" class="icon icon-home"> Crown Manual
  37. </a>
  38. <div class="version">
  39. 0.40.0
  40. </div>
  41. <div role="search">
  42. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  43. <input type="text" name="q" placeholder="Search docs" />
  44. <input type="hidden" name="check_keywords" value="yes" />
  45. <input type="hidden" name="area" value="default" />
  46. </form>
  47. </div>
  48. </div>
  49. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  50. <ul class="current">
  51. <li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
  52. <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
  53. <li class="toctree-l1"><a class="reference internal" href="basics.html">Basic concepts</a></li>
  54. <li class="toctree-l1"><a class="reference internal" href="lua_api.html">Lua API reference</a></li>
  55. <li class="toctree-l1"><a class="reference internal" href="boot_config.html">boot.config reference</a></li>
  56. <li class="toctree-l1 current"><a class="current reference internal" href="">Command line reference</a><ul>
  57. <li class="toctree-l2"><a class="reference internal" href="#examples">Examples</a></li>
  58. <li class="toctree-l2"><a class="reference internal" href="#options">Options</a></li>
  59. </ul>
  60. </li>
  61. <li class="toctree-l1"><a class="reference internal" href="copyright.html">License</a></li>
  62. </ul>
  63. <ul>
  64. <li class="toctree-l1"><a class="reference internal" href="hackers/index.html">Hackers</a></li>
  65. </ul>
  66. </div>
  67. </div>
  68. </nav>
  69. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  70. <nav class="wy-nav-top" aria-label="top navigation">
  71. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  72. <a href="index.html">Crown Manual</a>
  73. </nav>
  74. <div class="wy-nav-content">
  75. <div class="rst-content">
  76. <div role="navigation" aria-label="breadcrumbs navigation">
  77. <ul class="wy-breadcrumbs">
  78. <li><a href="index.html" class="icon icon-home"></a> &raquo;</li>
  79. <li>Command line reference</li>
  80. <li class="wy-breadcrumbs-aside">
  81. <a href="_sources/command_line.txt" rel="nofollow"> View page source</a>
  82. </li>
  83. </ul>
  84. <hr/>
  85. </div>
  86. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  87. <div itemprop="articleBody">
  88. <div class="section" id="command-line-reference">
  89. <h1>Command line reference<a class="headerlink" href="#command-line-reference" title="Permalink to this headline">¶</a></h1>
  90. <div class="section" id="examples">
  91. <h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
  92. <p>Compile source data from <code class="docutils literal"><span class="pre">/home/user/demo</span></code> using a mapped <code class="docutils literal"><span class="pre">core</span></code> folder.</p>
  93. <div class="code highlight-python"><div class="highlight"><pre>crown-development64 --source-dir /home/user/demo --map-source-dir core /home/user --compile
  94. </pre></div>
  95. </div>
  96. <p>Run the engine using compiled data from <code class="docutils literal"><span class="pre">/home/user/demo_linux</span></code>:</p>
  97. <div class="code highlight-python"><div class="highlight"><pre><span class="n">crown</span><span class="o">-</span><span class="n">development64</span> <span class="o">--</span><span class="n">data</span><span class="o">-</span><span class="nb">dir</span> <span class="o">/</span><span class="n">home</span><span class="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">demo_linux</span>
  98. </pre></div>
  99. </div>
  100. </div>
  101. <div class="section" id="options">
  102. <h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
  103. <dl class="docutils">
  104. <dt><code class="docutils literal"><span class="pre">-h</span></code> <code class="docutils literal"><span class="pre">--help</span></code></dt>
  105. <dd>Display the help and quit.</dd>
  106. <dt><code class="docutils literal"><span class="pre">-v</span></code> <code class="docutils literal"><span class="pre">--version</span></code></dt>
  107. <dd>Display engine version and quit.</dd>
  108. <dt><code class="docutils literal"><span class="pre">--source-dir</span> <span class="pre">&lt;path&gt;</span></code></dt>
  109. <dd><p class="first">Use &lt;path&gt; as the source directory for resource compilation.</p>
  110. <p class="last">The &lt;path&gt; must be absolute.</p>
  111. </dd>
  112. <dt><code class="docutils literal"><span class="pre">--data-dir</span> <span class="pre">&lt;path&gt;</span></code></dt>
  113. <dd><p class="first">Use &lt;path&gt; as the destination directory for compiled resources.</p>
  114. <p class="last">The &lt;path&gt; must be absolute.</p>
  115. </dd>
  116. <dt><code class="docutils literal"><span class="pre">--boot-dir</span> <span class="pre">&lt;path&gt;</span></code></dt>
  117. <dd><p class="first">Boot the engine with the <code class="docutils literal"><span class="pre">boot.config</span></code> from given &lt;path&gt;.</p>
  118. <p class="last">The &lt;path&gt; must be relative.</p>
  119. </dd>
  120. <dt><code class="docutils literal"><span class="pre">--compile</span></code></dt>
  121. <dd><p class="first">Do a full compile of the resources.</p>
  122. <p class="last">When using this option you must also specify <code class="docutils literal"><span class="pre">--platform</span></code>, <code class="docutils literal"><span class="pre">--source-dir</span></code> and <code class="docutils literal"><span class="pre">--data-dir</span></code>.</p>
  123. </dd>
  124. <dt><code class="docutils literal"><span class="pre">--platform</span> <span class="pre">&lt;platform&gt;</span></code></dt>
  125. <dd><p class="first">Compile resources for the given &lt;platform&gt;.
  126. Possible values for &lt;platform&gt; are:</p>
  127. <ul class="last simple">
  128. <li><code class="docutils literal"><span class="pre">android</span></code></li>
  129. <li><code class="docutils literal"><span class="pre">linux</span></code></li>
  130. <li><code class="docutils literal"><span class="pre">windows</span></code></li>
  131. </ul>
  132. </dd>
  133. <dt><code class="docutils literal"><span class="pre">--continue</span></code></dt>
  134. <dd>Run the engine after resource compilation.</dd>
  135. <dt><code class="docutils literal"><span class="pre">--console-port</span> <span class="pre">&lt;port&gt;</span></code></dt>
  136. <dd><p class="first">Set port of the console.</p>
  137. <p class="last">When no port is specified, the engine uses the port 10001.</p>
  138. </dd>
  139. <dt><code class="docutils literal"><span class="pre">--wait-console</span></code></dt>
  140. <dd>Wait for a console connection before starting up.</dd>
  141. <dt><code class="docutils literal"><span class="pre">--parent-window</span> <span class="pre">&lt;handle&gt;</span></code></dt>
  142. <dd><p class="first">Set the parent window &lt;handle&gt; of the main window.</p>
  143. <p class="last">This option should be used only by the tools.</p>
  144. </dd>
  145. <dt><code class="docutils literal"><span class="pre">--server</span></code></dt>
  146. <dd><p class="first">Run the engine in server mode.</p>
  147. <p class="last">When using this option you must also specify <code class="docutils literal"><span class="pre">--source-dir</span></code>.</p>
  148. </dd>
  149. <dt><code class="docutils literal"><span class="pre">--run-unit-tests</span></code></dt>
  150. <dd>Run unit tests and quit. Available only on <code class="docutils literal"><span class="pre">linux</span></code> and <code class="docutils literal"><span class="pre">windows</span></code>.</dd>
  151. </dl>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. <footer>
  157. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  158. <a href="copyright.html" class="btn btn-neutral float-right" title="License" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
  159. <a href="boot_config.html" class="btn btn-neutral float-left" title="boot.config reference" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
  160. </div>
  161. <hr/>
  162. <div role="contentinfo">
  163. <p>
  164. &#169; <a href="copyright.html">Copyright</a> Except where otherwise noted, content on this page is licensed under a CC-BY-SA 4.0 Int. License.
  165. </p>
  166. </div>
  167. Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
  168. <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
  169. provided by <a href="https://readthedocs.org">Read the Docs</a>.
  170. </footer>
  171. </div>
  172. </div>
  173. </section>
  174. </div>
  175. <script type="text/javascript">
  176. jQuery(function () {
  177. SphinxRtdTheme.Navigation.enable(true);
  178. });
  179. </script>
  180. </body>
  181. </html>