Difference between revisions of "Command line"
Jump to navigation
Jump to search
m (Made article slightly more readable) |
|||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages}} | ||
== Common Commands == | == Common Commands == | ||
− | * <code>--address <value></code> | + | * <code>--address <value></code> - Address to connect to. (''empty value'' → local game) |
− | * <code>--gameid <value></code> | + | * <code>--gameid <value></code> - Set gameid |
− | * <code>--gameid list</code> | + | * <code>--gameid list</code> - List available gameids |
− | * <code>--map-dir <value></code> | + | * <code>--map-dir <value></code> - Same as <code>--world</code> (deprecated) |
− | * <code>--world <value></code> | + | * <code>--world <value></code> - Set world path (implies local game) |
− | * <code>--world list</code> | + | * <code>--world list</code> - List all available worlds |
− | * <code>--worldname <value></code> | + | * <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 <value></code> - Migrate from current backend to another (only works when using minetestserver or <code>--server</code>) |
− | * <code>--name <value></code> | + | * <code>--migrate-players <value></code> - Migrate from current player backend to another (only works when using minetestserver or <code>--server</code>) |
− | * <code>--password <value></code> | + | * <code>--name <value></code> - Set player name |
− | * <code>--port <value></code> | + | * <code>--password <value></code> - Set password |
− | * <code>--go</code> | + | * <code>--port <value></code> - Set network port (UDP) |
− | * <code>--config <value></code> | + | * <code>--go</code> - Disable main menu (skips and goes straight to game) |
− | * <code>--server</code> | + | * <code>--config <value></code> - Load configuration from specified file |
− | * <code>--videomodes</code> | + | * <code>--server</code> - Run dedicated server |
− | * <code>--help</code> | + | * <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 == | == Debugging and Testing == | ||
Line 55: | Line 59: | ||
Now run it by double clicking your batch file. | Now run it by double clicking your batch file. | ||
− | + | [[Category:About Minetest]] | |
− | [[Category: |
Latest revision as of 21:25, 6 March 2022
Language: | English • Deutsch • 日本語 |
---|
Common Commands
--address <value>
- Address to connect to. (empty value → local game)--gameid <value>
- Set gameid--gameid list
- List available gameids--map-dir <value>
- Same as--world
(deprecated)--world <value>
- Set world path (implies local game)--world list
- List all available worlds--worldname <value>
- Set world by name (implies local game)--migrate <value>
- Migrate from current backend to another (only works when using minetestserver or--server
)--migrate-players <value>
- Migrate from current player backend to another (only works when using minetestserver or--server
)--name <value>
- Set player name--password <value>
- Set password--port <value>
- Set network port (UDP)--go
- Disable main menu (skips and goes straight to game)--config <value>
- Load configuration from specified file--server
- Run dedicated server--videomodes
- Show available video modes--help
- Show allowed options--console
- Starts with the console (Windows only)--terminal
- Feature an interactive terminal (Only works when using minetestserver or with--server
)
Debugging and Testing
--logfile <value>
- Set logfile path (empty value → no logging)--info
- Print more information to console--trace
- Print enormous amounts of information to log and console--verbose
- Print even more information to console--disable-unittests
- Disable unit tests--enable-unittests
- Enable unit tests--random-input
- Enable random user input, for testing--speedtests
- Run speed tests
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.