|
|
Line 1: |
Line 1: |
| {{Languages}} | | {{Languages}} |
− | == Common Commands ==
| |
− | * <code>--address <value></code> - Address to connect to. (''empty value'' → local game)
| |
− | * <code>--gameid <value></code> - Set gameid
| |
− | * <code>--gameid list</code> - List available gameids
| |
− | * <code>--map-dir <value></code> - Same as <code>--world</code> (deprecated)
| |
− | * <code>--world <value></code> - Set world path (implies local game)
| |
− | * <code>--world list</code> - List all available worlds
| |
− | * <code>--worldname <value></code> - Set world by name (implies local game)
| |
− | * <code>--migrate <value></code> - Migrate from current backend to another (only works when using minetestserver or <code>--server</code>)
| |
− | * <code>--migrate-players <value></code> - Migrate from current player backend to another (only works when using minetestserver or <code>--server</code>)
| |
− | * <code>--name <value></code> - Set player name
| |
− | * <code>--password <value></code> - Set password
| |
− | * <code>--port <value></code> - Set network port (UDP)
| |
− | * <code>--go</code> - Disable main menu (skips and goes straight to game)
| |
− | * <code>--config <value></code> - Load configuration from specified file
| |
− | * <code>--server</code> - Run dedicated server
| |
− | * <code>--videomodes</code> - Show available video modes
| |
− | * <code>--help</code> - Show allowed options
| |
− | * <code>--console</code> - Starts with the console (Windows only)
| |
− | * <code> --terminal</code> - Feature an interactive terminal (Only works when using minetestserver or with <code>--server</code>)
| |
| | | |
− | == Debugging and Testing == | + | == List of arguments == |
− | * <code>--logfile <value></code> - Set logfile path (''empty value'' → no logging)
| + | To get a list of command-line arguments, simply pass the argument <code>--help</code> to the binary from the command line or the terminal. You can also find a reference of arguments if you run <code>man minetest</code> or <code>man minetestserver</code> if it has been installed in your system manual. |
− | * <code>--info</code> - Print more information to console
| |
− | * <code>--trace</code> - Print enormous amounts of information to log and console
| |
− | * <code>--verbose</code> - Print even more information to console
| |
− | * <code>--disable-unittests</code> - Disable unit tests
| |
− | * <code>--enable-unittests</code> - Enable unit tests
| |
− | * <code>--random-input</code> - Enable random user input, for testing
| |
− | * <code>--speedtests</code> - Run speed tests
| |
| | | |
| == Running command line arguments == | | == Running command line arguments == |
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.