Skip to content

Commit a38fbbd

Browse files
committed
feat(paper): document CLI arguments
1 parent 4de4a40 commit a38fbbd

File tree

2 files changed

+140
-0
lines changed

2 files changed

+140
-0
lines changed

astro.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export default defineConfig({
151151
"paper/reference/paper-plugins",
152152
"paper/reference/commands",
153153
"paper/reference/system-properties",
154+
"paper/reference/cli-arguments",
154155
"paper/reference/permissions",
155156
],
156157
},
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
---
2+
title: CLI Arguments
3+
slug: paper/reference/cli-arguments
4+
description: Reference for all CLI arguments Paper recognizes.
5+
version: 1.21.11
6+
tableOfContents: false
7+
---
8+
9+
Paper provides CLI arguments you can set to configure certain behavior. CLI arguments are always added directly
10+
**after** the server file name when starting the server. For example:
11+
```bash
12+
java -jar server.jar --nogui
13+
```
14+
15+
`--nogui` is referred to as a CLI argument (more specifically, as it has no value, a **flag**).
16+
This page acts as a reference to all arguments Paper provides.
17+
18+
Some of these options are direct counterparts to settings you can modify in the `server.properties` file.
19+
The CLI arguments always **override** those set in the `server.properties` file.
20+
21+
##### `-?, --help`
22+
Prints a help message with all CLI arguments you may pass. Using this flag will not start the server.
23+
24+
##### `-C, --commands-settings <commands yml file>`
25+
The path towards the command settings file. Defaults to `commands.yml`.
26+
27+
##### `-P, --plugins <plugin directory>`
28+
The directory to look in for plugin jars. Defaults to `plugins`.
29+
30+
##### `-S, --spigot-settings <yml file>`
31+
The path towards the Spigot configuration file. Defaults to `spigot.yml`.
32+
33+
##### `-W, --universe, --world-container, --world-dir <world directory>`
34+
The folder to put other world folders into. Defaults to `.` (this folder).
35+
36+
##### `--add-extra-plugin-dir, --add-plugin-dir <directory>`
37+
Additional directory to look for plugin files in. May be specified multiple times for more than one
38+
extra plugin directory.
39+
40+
##### `--add-extra-plugin-jar, --add-plugin <jar file>`
41+
Additional plugin jar file to load. May be specified multiple times for multiple plugin jars.
42+
43+
##### `-b, --bukkit-settings <yml file>`
44+
The path towards the Bukkit configuration file. Defaults to `bukkit.yml`.
45+
46+
##### `-c, --config <properties file>`
47+
The path towards the Minecraft server properties file. Defaults to `server.properties`.
48+
49+
##### `-d, --date-format <log date format>`
50+
Override for the date format displayed in log entries.
51+
52+
##### `--demo`
53+
Whether to load the server in demo mode. This results in always the same world being generated and additional
54+
demo reminders and help messages being sent.
55+
56+
##### `--eraseCache`
57+
Whether to force cache erase during world upgrades. This removes data such as heightmap and light data,
58+
which may be useful if you want to force recalculate those.
59+
60+
##### `--forceUpgrade`
61+
Whether to force a full world upgrade on server start.
62+
63+
:::warning
64+
65+
This setting should rarely ever be used. The upgrade system in Paper is fast enough to do
66+
upgrades gradually as you play.
67+
68+
:::
69+
70+
##### `-h, --host, --server-ip <hostname or ip>`
71+
The host to listen on.
72+
73+
##### `--initSettings`
74+
Whether to only create setting files and then shut down the server before creating any worlds. This is useful
75+
if you want to first set some configuration values, which may be relevant during world creation.
76+
77+
##### `--jfrProfile`
78+
Whether to enable jfr profiling.
79+
80+
##### `--log-append <true|false>`
81+
Whether to append to the log file. Defaults to `true`.
82+
83+
##### `--log-count <value>`
84+
The amount of log files to cycle through. Defaults to `1`.
85+
86+
##### `--log-limit <value>`
87+
The maximum size of the log file. A value of `0` means it may grow in size indefinitely.
88+
Defaults to `0`.
89+
90+
##### `--log-pattern <filename>`
91+
The log file name pattern. Defaults to `server.log`.
92+
93+
##### `--log-strip-color`
94+
Strips color codes from the log file.
95+
96+
##### `--noconsole`
97+
Disables the console.
98+
99+
##### `--nogui`
100+
Disables the graphical interface.
101+
102+
##### `--nojline`
103+
Disables jline and emulates the Vanilla console.
104+
105+
##### `-o, --online-mode <true|false>`
106+
Whether to use online authentication.
107+
108+
##### `-p, --port, --server-port <port>`
109+
The port to listen on.
110+
111+
##### `--paper, --paper-settings <yml file>`
112+
The legacy Paper settings file path. Defaults to `paper.yml`.
113+
114+
##### `--paper-dir, --paper-settings-directory <config directory>`
115+
Path to the Paper settings directory. Defaults to `config`.
116+
117+
##### `--pidFile <path>`
118+
Path to the pid file.
119+
120+
##### `--recreateREgionFiles``
121+
Whether to recreate region files during world upgrades.
122+
123+
##### `-s, --max-players, --size <value>`
124+
The maximum amount of players.
125+
126+
##### `--safeMode`
127+
Loads worlds only with the Vanilla datapack enabled.
128+
129+
##### `--server-name <name>`
130+
The name of the server. Defaults to `Unknown Server`.
131+
132+
##### `--serverId <string>`
133+
The server ID.
134+
135+
##### `-v, --version`
136+
Prints the CraftBukkit version. This option prevents the server from starting.
137+
138+
##### `-w, --level-name, --world <name>`
139+
Set the world name.

0 commit comments

Comments
 (0)