# Command-line Arguments

* `--bonusChest`
  * Generate a [bonus chest](https://minecraft.fandom.com/wiki/Bonus_chest).
* `--demo`
  * Run the server in demo mode.&#x20;
* `--eraseCache`
  * Erase server cache
* `--forceUpgrade`
  * Forces upgrade on all the chunks, so the version of all chunks matches the current server version.
* `--help`
* `--initSettings`
  * Loads settings from 'server.properties' and 'eula.txt', then exit.
* `--jfrprofile`
  * Initializes the Java Flight Recorder. (v1.18+)
* `--nogui`
  * Doesn't open the GUI when launching the server. **Not recommended if you want to monitor your server**
* `--port <Number>`
  * Overrides the server.properties value.&#x20;
* `--safeMode`
  * Loads with vanilla data pack only.
* `--serverId <String>`
* `--singleplayer`
  * Runs the server in offline mode&#x20;
* `--universe <String>`
  * The folder in which to look for world folders.&#x20;
* `--world <String>`

  * The name of the world folder

From the [wiki](https://minecraft.fandom.com/wiki/Tutorials/Setting_up_a_server).
