Difference between revisions of "Command line"

From Luanti Wiki
Jump to navigation Jump to search
(rename Minetest to Luanti)
 
Line 32: Line 32:
 
Now run it by double clicking your batch file.
 
Now run it by double clicking your batch file.
  
[[Category:About Minetest]]
+
[[Category:About Luanti]]

Latest revision as of 22:46, 22 October 2024

Languages Language: English

List of arguments

To get a list of command-line arguments, simply pass the argument --help to the binary from the command line or the terminal. You can also find a reference of arguments if you run man minetest or man minetestserver if it has been installed in your system manual.

Running command line arguments

Linux

Open up the terminal.

Simply type:

./minetest --server --worldname MyWorld

Or you can make a shell (.sh) file.

Windows

The easiest way to run command line arguments on windows it to make a batch file. Open a plain text editor (for example Notepad, or Notepad++).

Enter your command line arguments in the following format:

minetest.exe --server --worldname MyWorld

And save to startserver.bat in the bin folder, next to minetext.exe (It doesn't need to be called “startserver”, that was just an example).

Now run it by double clicking your batch file.