Valheim
Valheim Console Commands
Valheim keeps its commands behind two doors: a launch option that enables the console at all, and the devcommands line that unlocks the cheats once you are in it. Miss either and every command below returns nothing.
The builder assembles spawn commands with the amount and level in the right order, which is where most attempts go wrong.
Item names in Valheim are case sensitive. spawn Wood works and spawn wood does not, and the failure is silent — no error, no item, nothing.
Valheim Spawn Builder
Build a spawn command with the item, amount and level in the right order. Remember that item names are case sensitive.
The command Valheim is best known for. Amount and level are both optional; level is the star rating on a creature or the quality on an item.
Case sensitive. Wood, Stone, Coal and Flint are confirmed.
Star rating for creatures, quality for gear.
Your command
spawn Wood 50 1Item names are case sensitive — Wood works and wood does not. Run devcommands first or nothing happens.
Full command reference
Every command, searchable and filterable by what it does. Each one copies with a tap.
Showing 23 of 23
Enable cheats
Unlocks every command below. Nothing else works until this runs.
Setup
Replaced the older imacheater command. Run it again to switch cheats back off.
God mode
Take no damage from anything.
Player
Ghost mode
Enemies stop noticing you.
Player
Fly
Free flight. Space and X control altitude.
Movement
Free building
Build and craft without materials, and with every recipe unlocked.
Building
Spawn an item
Drops items or creatures in front of you.
Items
Item names are case sensitive. Wood, Stone, Coal and Flint are the safe early ones.
Heal
Restores health to full.
Player
Clear food
Empties your food slots so you can eat again immediately.
Player
Raise a skill
Adds levels to one skill.
Player
Reset a skill
Sets one skill back to zero.
Player
Set time of day
A value from 0 to 1 across a full day. -1 returns to normal.
World
Skip time
Jumps the clock forward by the seconds you name.
World
Kill everything nearby
Kills every enemy in the loaded area.
World
Tame nearby animals
Instantly tames every tameable creature around you.
World
Clear dropped items
Removes loose items from the ground. Useful after killall.
World
Reveal the map
Uncovers the entire world map.
World
Hide the map
Puts the fog of war back.
World
Show coordinates
Prints your current position, which goto needs.
Travel
Teleport
Moves you to a coordinate. Requires fly to be on first.
Travel
Turn fly on before using this or you will fall through the world while the terrain loads.
Force player scaling
Sets enemy difficulty as if this many players were present. 0 restores normal.
World
Start an event
Triggers a named raid event.
World
Stop the event
Ends the current raid.
World
Force a save
Writes the world to disk immediately.
Setup
Enabling the Console
There are two steps and both are required. First, add -console to the game’s launch options: in Steam, right-click Valheim, choose Properties, and type it into the Launch Options field. This is what makes the console exist at all.
Then, in game, press F5 to open the console and type devcommands. That is what unlocks the cheat commands specifically — without it the console opens and accepts input but the interesting commands do nothing. devcommands replaced the older imacheater line, which is still printed on plenty of guides and no longer works.
Running devcommands a second time switches cheats back off, and it resets when you quit, so it has to be re-entered each session.
One limitation is absolute: cheat commands only work in single player or in a world you are hosting yourself. On a dedicated server they do nothing at all, regardless of whether you own the server.
The Spawn Command
spawn takes three arguments in a fixed order: the item name, how many you want, and the level. Amount and level are both optional, so spawn Wood on its own gives you one piece of wood.
The level argument means different things depending on what you are spawning. On a creature it is the star rating — level 2 is a one-star enemy, level 3 is two stars. On an item it is the quality, which is the upgrade tier a crafting station would have given it.
Case sensitivity is the thing that catches everyone. The internal names are capitalised, so Wood, Stone, Coal and Flint all work and their lower-case versions do not. There is no error message when you get it wrong — the console simply accepts the line and nothing appears, which reads exactly like the console not working at all.
Spawned creatures appear directly in front of you and are immediately hostile if they would normally be hostile, so spawning something large while standing in your own base is a way to lose your base.
Achievements and Teleporting
Using cheats is reported to switch achievements off for the current session, with them returning after a clean restart without devcommands enabled. That is a milder penalty than most games apply and it is not a permanent mark on the save.
The command most likely to cause a genuine problem is goto, which teleports you to a coordinate. Terrain in Valheim loads around the player, and arriving somewhere before the ground has generated means falling through the world. Turning fly on first is the standard precaution — you hover while the terrain appears underneath you, then switch it off.
pos prints your current coordinates, which is how you get the numbers goto needs in the first place. Note them down before travelling somewhere you want to come back from.
Frequently Asked Questions
How do I enable console commands in Valheim?
Add -console to the game’s launch options in Steam, then press F5 in game and type devcommands. Both steps are needed: the launch option enables the console, and devcommands unlocks the cheats within it.
What is the Valheim spawn command syntax?
spawn followed by the item name, the amount and the level, in that order — for example spawn Wood 50 1. Amount and level are optional. Level is the star rating on a creature and the quality tier on an item.
Why is my spawn command not working?
Almost always capitalisation. Item names are case sensitive, so spawn Wood works and spawn wood silently does nothing. The other cause is not having run devcommands in that session.
Do Valheim console commands disable achievements?
They are reported to switch achievements off for the current session, returning after you restart the game without cheats enabled. It is not a permanent change to the save.
Do cheats work on a Valheim dedicated server?
No. Cheat commands only function in single player or in a world you are hosting locally. On a dedicated server they do nothing, even if the server is yours.
Why do I fall through the world after using goto?
Because the terrain at your destination has not loaded yet. Turn fly on before teleporting so you hover while the ground generates underneath you, then switch it off.
Related Guides
- Skyrim Console CommandsA builder for additem and setav, plus the full searchable command list.Open guide
- Fallout 4 Console CommandsA builder for additem, setav and modav, plus the searchable command list.Open guide
- ARK Admin CommandsBuilders for GiveItemNum and Summon, plus the full admin command list.Open guide
- CS2 Console CommandsA practice config generator plus the full searchable command reference.Open guide
- Subnautica Console CommandsAn item and spawn builder, plus the full command list and how to enable the console.Open guide