Valheim Server Console Commands
These commands moderate a Valheim dedicated server: kick, ban, unban, and save. The official dedicated-server guide lists the in-game admin commands and the adminlist.txt file.
Open the console
Section titled “Open the console”Join the server and press F5. The console stays closed until -console is in the Steam launch options. The steps are in How do I add an Admin in Valheim?. If F5 does nothing, that launch option is missing.
Become an admin
Section titled “Become an admin”kick, ban, unban, banned, and save are admin commands. A player who is not an admin cannot use them.
Stop the server, add the player’s SteamID64 to saves/adminlist.txt with one ID per line, then start the server. The official guide uses the same file name, adminlist.txt. On AleForge it is saves/adminlist.txt. Restart after you save the file. The full steps are in How do I add an Admin in Valheim?.
Admin commands
Section titled “Admin commands”The official guide writes these as Kick PLAYERNAME, Ban PLAYERNAME, Unban PLAYERNAME, and Banned. How to kick, ban, and unban people on your Valheim server also accepts a SteamID64 or a character name.
| Command | Effect |
|---|---|
kick [name/ip/userID] |
Kicks that player |
ban [name/ip/userID] |
Bans that player |
unban [ip/userID] |
Removes a ban |
banned |
Lists banned players |
save |
Forces the world to save |
Other server console commands
Section titled “Other server console commands”| Command | Effect |
|---|---|
help |
Lists commands |
ping |
Pings the server and shows your latency |
lodbias [number] |
Sets the distance LOD bias. Empty shows the current value. The default is 1.5 |
info |
Prints system info |
World modifiers and presets
Section titled “World modifiers and presets”On a dedicated server, presets and modifiers are startup options. The official guide uses -preset, -modifier, and -setkey. On AleForge those are the Startup fields. In-game setworldmodifier and setworldpreset are not part of a vanilla dedicated server. They need the Server Dev Commands mod and an admin. Values and panel steps are in How to use Valheim World Modifiers.
Cheat commands also need a mod such as Server Dev Commands on the client and the server.