Valheim console commands
All 19 settings and 4 commands from the game's own list, with defaults and examples to copy.
23 commands
- -world
Sets which world the server loads. A new world with that name is created if it does not exist.
Default Not listed
Launch options
- -public
Sets whether the server is listed in the public server browser: 1 to show it, 0 to hide it.
Default 1 (Visible in the server list)
Launch options
- -crossplay
Runs the server on the crossplay backend (PlayFab) so players on any platform can join, with no port forwarding needed.
Default Not listed
Launch options
- -preset
Sets the world modifier preset, such as casual, hard or hardcore, overwriting earlier modifiers.
Default Not listed
World modifiers
- -modifier
Sets one world modifier, like combat, raids or portals, to a chosen value.
Default Not listed
World modifiers
- kick
Removes a player from the server right away. They can rejoin unless you ban them.
Command
Admin commands
- ban
Blocks a player from the server so they cannot rejoin, saved in bannedlist.txt.
Command
Admin commands
- -backuplong
Sets the interval between the later automatic backups, in seconds. The default is 43200 (12 hours).
Default 43200
Launch options
- -backups
Sets how many automatic world backups the server keeps. The default is 4.
Default 4
Launch options
- -backupshort
Sets the interval for the first automatic backup, in seconds. The default is 7200 (2 hours).
Default 7200
Launch options
- -instanceid
Sets a unique ID for each server when you host several crossplay servers with the same port from one machine.
Default Not listed
Launch options
- -logFile
Sets the file path where the server writes its log.
Default Not listed
Launch options
- -name
Sets the server name shown in the in-game server list.
Default Not listed
Launch options
- -password
Sets the password players must enter to join the server.
Default Not listed
Launch options
- -port
Sets the port the server uses. Valheim uses this port and the next one, so 2456 means 2456 and 2457.
Default 2456
Launch options
- -savedir
Sets the folder where worlds and the admin, ban and permitted lists are saved, replacing the default path.
Default Not listed
Launch options
- -saveinterval
Sets how often the world is saved, in seconds. The default is 1800 (30 minutes).
Default 1800
Launch options
- -setkey
Turns on a world modifier checkbox: nobuildcost, playerevents, passivemobs or nomap.
Default Not listed
World modifiers
- banned
Lists all players currently banned from the server.
Command
Admin commands
- unban
Removes a player's ban so they can join again.
Command
Admin commands
- adminlist.txt
Lists the players with admin rights on the server, one Platform User ID per line.
Default Not listed
Access lists
- bannedlist.txt
Lists the players banned from the server, one Platform User ID per line.
Default Not listed
Access lists
- permittedlist.txt
Sets a whitelist: once any ID is in it, only the listed players can join the server.
Default Not listed
Access lists
Nothing matches.
Try part of the name, like freeze or money, or a word from what it does.
Questions
How do I run Valheim commands on my server?
Launch options go on the server's start line. Admin commands are typed in the in-game console (F5) by a player on the admin list.
Where does this list come from?
It is the game's own list: the Valheim Dedicated Server Manual that ships with the server. The descriptions and examples on the written pages are by SLASHPLAY.
Try them on
your own server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.