|
| 1 | +Usage |
| 2 | +===== |
| 3 | + |
| 4 | +Creating a new project |
| 5 | +---------------------- |
| 6 | + |
| 7 | +In order to create a new project you need to use: |
| 8 | + |
| 9 | +.. code-block:: bash |
| 10 | +
|
| 11 | + nf new |
| 12 | +
|
| 13 | +Commands |
| 14 | +-------- |
| 15 | + |
| 16 | +Multiple commands exists to the cli: |
| 17 | + |
| 18 | +* :ref:`build` |
| 19 | +* :ref:`generate` |
| 20 | +* :ref:`install_add` |
| 21 | +* :ref:`new` |
| 22 | +* :ref:`start` |
| 23 | + |
| 24 | +.. _build: |
| 25 | + |
| 26 | +build |
| 27 | +^^^^^ |
| 28 | + |
| 29 | +Used to build your nanoforge project. |
| 30 | + |
| 31 | +* ``-d, --directory [directory]`` specify the directory of the nanoforge project to build. |
| 32 | +* ``-c, --config [config]`` path to the config file. (`Schema <https://nanoforge-dev.github.io/docs/cli/config.schema.json>`__) |
| 33 | +* ``--client-outDir [clientDirectory]`` specifies the client directory. |
| 34 | +* ``--server-outDir [serverDirectory]`` specifies the server directory. |
| 35 | + |
| 36 | +.. _generate: |
| 37 | + |
| 38 | +generate |
| 39 | +^^^^^^^^ |
| 40 | + |
| 41 | +Used to generate nanoforge project files from config |
| 42 | + |
| 43 | +* ``-d, --directory [directory]`` specify the directory of the nanoforge project to build. |
| 44 | +* ``-c, --config [config]`` path to the config file. (`Schema <https://nanoforge-dev.github.io/docs/cli/config.schema.json>`__) |
| 45 | + |
| 46 | +.. _install_add: |
| 47 | + |
| 48 | +install/add |
| 49 | +^^^^^^^^^^^ |
| 50 | + |
| 51 | +Used to add a nanoforge library to your project |
| 52 | + |
| 53 | +* ``-d, --directory [directory]`` specify the directory of the nanoforge project to build. |
| 54 | + |
| 55 | +.. _new: |
| 56 | + |
| 57 | +new |
| 58 | +^^^ |
| 59 | + |
| 60 | +Used to create a new nanoforge project |
| 61 | + |
| 62 | +* ``-d, --directory [directory]`` specify the directory of your project |
| 63 | +* ``--name [name]`` specify the name of your project |
| 64 | +* ``--path [path]`` specify the path of your project |
| 65 | +* ``--package-manager [packageManager]`` specify the package manager of your project |
| 66 | +* ``--language [language]`` specify the language of your project |
| 67 | +* ``--strict`` use strict mode |
| 68 | +* ``--no-strict`` do not use strict mode |
| 69 | +* ``--server`` create a server |
| 70 | +* ``--no-server`` do not create a server |
| 71 | +* ``--init-functions`` initialize functions |
| 72 | +* ``--no-init-functions`` do not initialize functions |
| 73 | +* ``--skip-install`` skip installing dependencies |
| 74 | +* ``--no-skip-install`` do not skip installing dependencies |
| 75 | + |
| 76 | +.. _start: |
| 77 | + |
| 78 | +start |
| 79 | +^^^^^ |
| 80 | + |
| 81 | +Used to start your nanoforge project |
| 82 | + |
| 83 | +* ``-d, --directory [directory]`` specify the directory of your project |
| 84 | +* ``-c, --config [config]`` path to the config file (default: "nanoforge.config.json") (`Schema <https://nanoforge-dev.github.io/docs/cli/config.schema.json>`__) |
| 85 | +* ``-p, --client-port [clientPort]`` specify the port of the loader (the website to load the game) |
| 86 | +* ``--game-exposure-port [gameExposurePort]`` specify the port of the game exposure |
| 87 | +* ``--server-port [serverPort]`` specify the port of the server |
0 commit comments