Skip to content

CLI Arguments

Paper provides CLI arguments you can set to configure certain behavior. CLI arguments are always added directly after the server file name when starting the server. For example:

Terminal window
java -jar server.jar --nogui

--nogui is referred to as a CLI argument (more specifically, as it has no value, a flag). This page acts as a reference to all arguments Paper provides.

Some of these options are direct counterparts to settings you can modify in the server.properties file. The CLI arguments always override those set in the server.properties file.

Prints a help message with all CLI arguments you may pass. Using this flag will not start the server.

-C, --commands-settings <commands yml file>
Section titled “-C, --commands-settings <commands yml file>”

The path towards the command settings file. Defaults to commands.yml.

The directory to look in for plugin JARs. Defaults to plugins.

The path towards the Spigot configuration file. Defaults to spigot.yml.

-W, --universe, --world-container, --world-dir <world directory>
Section titled “-W, --universe, --world-container, --world-dir <world directory>”

The folder to put other world folders into. Defaults to . (this folder).

--add-extra-plugin-dir, --add-plugin-dir <directory>
Section titled “--add-extra-plugin-dir, --add-plugin-dir <directory>”

Additional directory to look for plugin files in. May be specified multiple times for more than one extra plugin directory.

--add-extra-plugin-jar, --add-plugin <jar file>
Section titled “--add-extra-plugin-jar, --add-plugin <jar file>”

Additional plugin JAR file to load. May be specified multiple times for multiple plugin JARs.

The path towards the Bukkit configuration file. Defaults to bukkit.yml.

The path towards the Minecraft server properties file. Defaults to server.properties.

Whether to load the server in demo mode. This results in always the same world being generated and additional demo reminders and help messages being sent.

Whether to force cache erase during world upgrades. This removes data such as heightmap and light data, which may be useful if you want to force recalculate those.

Whether to force a full world upgrade on server start.

The host to listen on.

Whether to only create setting files and then shut down the server before creating any worlds. This is useful if you want to first set some configuration values, which may be relevant during world creation.

Whether to enable JFR (Java Flight Recorder) profiling.

Disables the console.

Disables the graphical interface.

Disables JLine and emulates the Vanilla console.

Whether to use online authentication.

The port to listen on.

The legacy Paper settings file path. Defaults to paper.yml.

--paper-dir, --paper-settings-directory <config directory>
Section titled “--paper-dir, --paper-settings-directory <config directory>”

Path to the Paper settings directory. Defaults to config.

Path to the PID file.

Whether to recreate region files during world upgrades.

The maximum amount of players.

Loads worlds only with the Vanilla datapack enabled.

The name of the server. Defaults to Unknown Server.

Sets the server identifier, which is used in crash files.

Prints the CraftBukkit version. This option prevents the server from starting.

Sets the world name.