Valheim Admin Commands
While Valheim has quite a lot of admin commands, many of them are only available on a local server and not a dedicated server. In this guide we will go over the differences in these commands.
Making Yourself An Administrator
Before we begin, you will obviously need to first become an Administrator in order to use any of these commands on your server. Please see our guide here to get that set up.
Accessing The Console
While connected to your Valheim server, you can press the F5 key on your keyboard to open up the console. This is where all of the below commands can be entered. You can use copy and paste commands in here as well!
Dedicated Server Admin Commands
These commands will be able to be used as an Administrator on your Valheim server. These only require you to have "Admin" status and not "imacheater" (explained in the next section) status.
Command | Params | Description |
ban |
<name, IP, 64 ID> |
Adds the specified player to your server's ban list. They will not be able to enter your server after entering this command, until they are removed from the bannedlist file. |
banned | Lists all of the banned users on your server. | |
kick |
<name, IP, 64 ID> |
Kicks the specified player out of your server. They can still re-join afterwards. |
unban |
<IP, 64 ID> |
Removes the specified player from your server's ban list. After entering this command they will be able to enter your server again. |
Local Server Admin Commands
The following commands require you to not only be an Administrator, but to also have enabled the "imacheater" command. You can do so by opening your console and entering the command: imacheater
This command is currently only available on local Valheim servers, this means it will not work on your dedicated server hosted here.
Command | Params | Description |
beard | Removes your player character's beard. | |
dpsdebug | Toggles the DPS (damage per second) overlay on and off. | |
env | Allows you to change the debug environment. | |
event |
<name> |
Starts the event that you specified in the command. See below for a list of events. |
exploremap | Clears all fog of war on the map, exposing it all to you. | |
ffsmooth |
<0, 1> |
Enables (1) or disables (0) smooth panning while in the free camera. |
freefly | Detatches you from your character and lets you freely move around the map as a camera object that can fly and clip through walls. | |
god | Toggles "godmode", meaning you will not take any damage while enabled. | |
goto |
<x> <y> <z> |
Teleports you directly to the specified coordinates. |
hair | Removes your player character's hair. | |
killall | Kills all enemies within a close promixity to your character. | |
listkeys | Outputs a list of all global keys. | |
location | Sets your spawn location to the coordinates of where your player character is currently standing. | |
players |
<number> |
Sets the games scaling difficulty based on the players in your server. The lower the number, the lower the difficulty. Must be between 0-10. |
pos | Outputs your current X, Y, and Z coordinates. | |
raiseskill |
<skill> <amount> |
Raises the specified skill to the specified amount. |
randomevent | Triggers a random event. | |
removedrops | Deletes all of the item drops within a close proximity to your player. | |
resetcharacter | Resets your character completely, use with caution! This includes your skills, inventory, and items. | |
resetenv | Resets the current environment to the default one for the area you're in. | |
resetkeys |
<name> |
Resets the key that you specify. |
resetmap | Resets the fog of war and removes any progress made on the current map. | |
resetskilll |
<skill> |
Resets the specified skill back to 0. |
resetwind | Resets the wind to its default setting. | |
save | Forces a save to your current world file. | |
setkey |
<name> |
Adds a key that you specify. |
stopevent | Stops whatever event is currently active on your server. | |
tame | Automatically tames all creatures that are tameable within close proximity to your player character. | |
tod |
<number> |
Allows you to specify the current time of day on your server. The values must be between 0 and 1 (use decimals) with 0 and 1 both being midnight. You can reset it to the default time by entering -1. |
wind |
<angle> <intensity> |
Allows you to change the wind's angle and intensity to whatever values you specifiy. |
Event Names
- army_eikthyr
- army_goblin
- army_theelder
- wolves
- skeletons
- army_bonemass
- army_moder
- blobs
- foresttrolls
- surtlings