To activate the cheat codes in Valheim you will need to start the game with a flag on the command line.

Steam

  1. Right-click Valheim in your Steam library
  2. Select Properties
  3. In the General tab, look for the Launch Options field
  4. In it, type -console 
  5. Close the General tab

Cheat Codes

To enter cheat codes you need to open the console by pressing F5 and type devcommands to activate them. Now you can use the following commands:

god - Enables god mode.
freefly - Activates the free camera.
ffsmooth 1 - Adds smooth movements to free camera.
ffsmooth 0 - Resets smooth movements to normal.

killall - Kills all nearby enemies.
tame - Tames all nearby creatures.
ghost - Enemies will ignore you.
exploremap - Reveals the entire map.
resetmap - Hides entire map.
pos - Shows player coordinates.
goto [x,z] Teleports player to the specified coordinates.
location - Sets spawn location.

tod - Sets time of day. Values are between 0-1 (tod .5 is noon, tod 0 and tod 1 are midnight. tod -1 returns time of day to default.

event [name] - Starts the named event.
stopevent - Stops the current event.
randomevent - Starts a random event.

raiseskill [skill] [amount] - Raises the named skill by the value entered.
resetcharacter - Resets all of your character data.
dpsdebug - Toggles dps debug print on and off.
save - Forces the game to save the current world state.
players [nr] - Adjusts the difficulty scale. Enter 0 to reset difficulty.
removedrops - Removes all items dropped in the area.

wind [angle][intensity] - Adjusts the direction and intensity of the wind.
resetwind - Resets the wind angle and intensity

Creative Mode

To enter creative mode you need to open the console by pressing F5 and type debugmode to activate it.

B - Toggle for creative mode building, no workbench or resources needed.
Z - Toggle to fly. Spacebar gives you altitude, Ctrl brings you back down.
K - Tap to kill all nearby enemies and creatures within range.

    I like to see who's visiting my website, do you accept?
    Do you want to accept tracking cookies?