Though Valheim console commands can only be used in single-player mode, however, you can switch to god mode which makes you invulnerable, the ability to add skill points and spawn weapons and armor, and many more by using Valheim cheats and console commands.
With all of that in mind, here are all the Valheim console commands and cheats you should know about, and how to activate them whether you’re playing on Steam or on PC Game Pass.
How to enable Cheats and Console Commands in Valheim
Enable cheats with the PC Game Pass version
Before you can use cheats, you need to activate the in-game console. Here are the instructions for players using PC Game Pass.
Navigate to the game’s installation folder. Typically, it’s C:\XboxGames\Valheim\Content
In that folder, find Valheim.exe
Right-click Valheim.exe and select Create shortcut
Drag the shortcut to your desktop or the preferred location
Right-click the shortcut and select Properties
In the Shortcut tab, add -console to the end of the Target field
Click Apply, then click OK
Launch the game from the shortcut
cheats with the Steam version
To activate the console so you can use cheats, you will need to set it as a launch option in Steam. By default, the command console is locked.
Here’s how to activate the console:
Right-click Valheim in your Steam library
Select Properties
In the General tab, look for the Launch Options field
In it, type -console
Close the General tab
How to Enter Creative Mode (Debug Mode) in Valheim
Alternatively, if you’re looking for something that’s more along the lines of Minecraft’s Creative Mode, consider trying the “debugmode” command as this will enter the closest thing the game has to a Creative Mode. While in Debug Mode, you can press the following keys to enable the likes of Flying, Unlimited Items, and much more.
Z – Pressing Z while in Creative Mode will allow you to enter Flying Mode
K – Pressing K while in Creative Mode kills all enemies in the area.
B – Pressing B while in Creative Mode will allow you to repair any items without a Workbench, along with free placements of any items.
All Valheim Cheats and Console Commands
Listed below are all of the current console commands and cheats that you can enable while playing Valheim.
Character Cheats
Cheat Codes
Cheat Effect
god
Enables God Mode. Invincible to damage.
ghost
Enables Ghost Mode. Enemies will ignore you.
heal
Heals your character to full health.
puke
Resets your character’s hunger, while also restoring default health and stamina.
pos
Print current player position.
hair
permanently removes your hair.
beard
permanently removes your beard.
model [0/1]
Changes your character model between masculine and feminine body types.
resetcharacter
Reset Character data.
raiseskill [skill] [amount]
Raise skill level (for example raise skill jump 100).
resetskill [skill name]
Resets skill level to 0.
fov
Changes camera field of view.
Gameplay Cheats
Cheat Codes
Cheat Effects
devcommands
Enables cheats.
freefly
Freefly Photo Mode.
ffsmooth
Freefly smoothness.
location
Spawn location.
goto [x,z]
Teleport to entered coordinates.
exploremap
Explore the entire map.
resetmap
Reset map exploration.
nomap
Disables map for this character. If used as a host, will be disable for all joining players from now on.
tod [0-1]
Sets the time of day. Both 0 and 1 will give you midnight, whereas 0.5 will give you noon.
tod -1
Resets time of day to default.
skiptime [seconds]
Skips forward in time, allowing you to change your day number and time of day.
wind [angle 0-360] [intensity 0-1]
Sets wind to specified angle/intensity.
resetwind
Resets the wind.
sleep
Skips forward one day.
removedrops
Remove all item drops in the area.
players [num]
Sets difficulty scaling based on the number of players (0 = Reset).
spawn [item] [quantity] [level]
Spawns the specified item.
tame
tames all nearby tamable animals.
killall
Kills all nearby enemies
event [name]
Start event.
stopevent
Stop current events.
setkey [name]
Sets a new global key.
resetkeys [name]
Resets the specified key.
listkeys
Lists all the global keys.
env [env]
Sets debug environment.
resetenv
Resets the debug environment.
dpsdebug
Toggles the damage-per-second debug overlay on/off.
debugmode
Enables Creative Mode.
resetsharedmap
Removes any shared map data from the cartography table.
printbinds
Prints current binds
printseeds
Prints seeds of loaded dungeons
resetbinds
Resets all custom binds to default dev commands
maxfps [number]
sets fps limits
Valheim Server Admin Commands
Cheats aren’t the only console commands you can use in Valheim, as you’ll also find that Server Admin Commands may come in handy for kicking and banning players, along with increasing your server draw distance, force saving a world, and even more.
Below is a complete list of all Server Admin Commands in Valheim.
Cheat Codes
Cheat Effect
help
List all command
info
Print system info.
save
Force save of world.
ping
Show ping.
kick [name/ip/userID]
Kick player from the server.
ban [name/ip/userID]
Ban player from the server.
unban [name/ip/userID]
Unban the player from the server.
banned
List banned players.
lodbias [0-5]
Set draw distance for server.
noportals
disables portals for the server.
How to Spawn Any Item and Monster
In order to spawn items through the console command cheat, you will need to first enable cheats by typing “devcommands“. Once you have successfully enabled cheats, you will need to use the following code to spawn any item that you specify:
spawn [item] [quantity] [level]
For those that may be new to using console commands, we have compiled an example code below that spawns in 50 Wood.