Valheim Console Commands
Valheim has a built-in developer console: enable it, press F5, then type devcommands to unlock cheats such as god, fly and spawn. Cheats work in single-player or self-hosted worlds, not on dedicated servers.
- Cheats
- 55
- Platforms
- PC
- Type
- Console commands
- Last reviewed
- November 1, 2026


Before you use cheats: Most devcommands, such as spawn, permanently flag your character and world as cheated, locking achievements; freefly is exempt. Spawned items are tagged cheated too. Hotfix 1.0.12 added an opt-in command. Back up world and character files first; location without SAVE disables saving.
How to enter cheats
PC (Steam)
Settings > Gameplay > Enable Console; the -console launch option is no longer required. Press F5, type devcommands, then confirmcheats if asked. After debugmode: B free build, Z fly, K kill, L clear drops.
PC Game Pass
Yes, the Microsoft Store build has a console. Use Settings > Gameplay > Enable Console, or add -console to a Valheim.exe shortcut's Target (C:\XboxGames\Valheim\Content). Then press F5 and type devcommands.
Xbox
Yes, Xbox has a console, off by default since patch 0.221.4. Enable it in Settings > Gameplay, hold LB, RB, LT and RT, press Menu, then A for the keyboard. Type devcommands.
PlayStation 5 and Switch 2
No official instructions yet: Iron Gate has not documented a console for either, so none is confirmed here. Some guides report a hidden controller combo, but sources disagree.
All Valheim commands
55 cheats
Enable Cheats (4)
Turn cheat commands on (type it again to turn them off)
Works in single-player or a world you host, not on dedicated servers.
PCdevcommandsConfirm the cheat warning that Valheim 1.0 shows before your first cheat
New in 1.0. Guides say it accepts the warning; Iron Gate has not documented it.
PCconfirmcheatsOpt back in to achievements after using cheats or mods
Added in hotfix 1.0.12. Iron Gate leaves the decision to you.
PCyesiuseddevcommandsbutiwantmyachievementsanywayToggle debug (creative) mode and its hotkeys
B free building, Z fly, K kill nearby enemies, L clear drops. Type again to exit.
PCdebugmode
Player Cheats (9)
Toggle god mode: you cannot die
Health stops at 1 instead of zero. Type again to turn it off.
PCgodToggle ghost mode: enemies ignore you
PCghostToggle flying
Space rises, Ctrl descends. Same as pressing Z in debugmode.
PCflyToggle a free camera for screenshots
ffsmooth 1 smooths it, ffsmooth 0 resets. Exempt from the 1.0 cheat flag.
PCfreeflyToggle free building and crafting, no materials or workbench needed
Same as pressing B in debugmode.
PCnocostRefill health, stamina and eitr
PChealRaise a skill by an amount
Example: raiseskill jump 100. Use all for every skill, or a minus sign to lower.
PCraiseskill <Skill> <amount>Set a skill back to level 0
Accepts all since patch 0.219.13.
PCresetskill <Skill>Give a ready-made gear set with matching skill levels
Add keep to avoid dropping your items. Sets: Meadows, BlackForest, Swamps, Mountains, Plains, Mistlands.
PCitemset <SetName>
Creatures & Combat (4)
Tame every tameable creature nearby
Spawn a Wolf or Boar first, then run tame.
PCtameKill all nearby enemies and tamed animals
Never kills players. Use killenemies to spare your tames.
PCkillallKill nearby enemies but spare tamed animals
Same as pressing K in debugmode.
PCkillenemiesDelete all item drops nearby
Same as pressing L in debugmode.
PCremovedrops
Map, Teleport & Events (7)
Reveal the entire map
PCexploremapHide the whole map again
Erases everything you have explored.
PCresetmapShow your current coordinates
Use the x and z values with goto; ignore y.
PCposTeleport to map coordinates
Uses x and z only. Example: goto 2462 -104.
PCgoto <x> <z>Spawn a world location by its name
Skip SAVE and saving is disabled permanently. Example names: Eikthyrnir, StartTemple.
PClocation <LocationName> SAVEStart a raid or event by name
Examples: army_eikthyr, army_goblin, foresttrolls, skeletons, wolves.
PCevent <EventName>Stop the current event
PCstopevent
Time & Weather (4)
Set the time of day
0 or 1 is midnight, 0.5 is noon. tod -1 restores the normal cycle.
PCtod <0-1>Skip the clock forward by a number of seconds
PCskiptime <seconds>Force a weather type
Names: Clear, Rain, ThunderStorm, Snow, SnowStorm, Misty. resetenv restores normal weather.
PCenv <Name>Set wind direction and strength
Angle 0-360, intensity 0-1. resetwind restores natural wind.
PCwind <angle> <intensity>
Spawn: Basics & Materials (10)
Spawn any item or creature by its prefab name
Items land beside you. Add p at the end to pick them up; huge amounts can freeze the game.
PCspawn <PrefabName> <amount>Spawn 50 Wood
Spawns 50 single pieces, not a stack.
PCspawn Wood 50Spawn 50 Finewood
PCspawn FineWood 50Spawn 50 Corewood
Corewood's prefab name is RoundLog.
PCspawn RoundLog 50Spawn 50 Stone
PCspawn Stone 50Spawn 500 Coins
PCspawn Coins 500Spawn 20 Bronze bars
Copper and Tin spawn the same way. Ores are CopperOre and TinOre.
PCspawn Bronze 20Spawn 30 Iron bars
Mined ore is IronScrap.
PCspawn Iron 30Spawn 30 Silver bars
Ore is SilverOre.
PCspawn Silver 30Spawn 30 Black Metal bars
Scrap is BlackMetalScrap.
PCspawn BlackMetal 30
Spawn: Food, Weapons & Gear (7)
Spawn 10 Queen's Jam
PCspawn QueensJam 10Spawn a Black Metal Sword
Note the lowercase m. The metal bar is BlackMetal.
PCspawn SwordBlackmetal 1Spawn the Stagbreaker sledgehammer
PCspawn SledgeStagbreaker 1Spawn the Cheat Sword
Console-only sword that deals massive damage. Spawned items show as cheated.
PCspawn SwordCheat 1Spawn a Troll Leather Tunic
Legs are ArmorTrollLeatherLegs, helmet is HelmetTrollLeather.
PCspawn ArmorTrollLeatherChest 1Spawn a Wolf Hide Chestpiece (Wolf armor)
Legs are ArmorWolfLegs.
PCspawn ArmorWolfChest 1Spawn the Megingjord belt
PCspawn BeltStrength 1
Spawn: Boss Summon Items (7)
Spawn 2 Deer Trophies, the offering that summons Eikthyr
PCspawn TrophyDeer 2Spawn 3 Ancient Seeds, the offering that summons The Elder
PCspawn AncientSeed 3Spawn 10 Withered Bones, the offering that summons Bonemass
PCspawn WitheredBone 10Spawn 3 Dragon Eggs, the offering that summons Moder
PCspawn DragonEgg 3Spawn 5 Fuling Totems, the offering that summons Yagluth
PCspawn GoblinTotem 5Spawn 3 Seeker Soldier Trophies, the offering that re-summons The Queen
Only re-summons her after the first fight, which needs a Sealbreaker.
PCspawn TrophySeekerBrute 3Spawn 3 Bells, which you place around the arena to summon Fader
Each Bell is crafted from 3 BellFragment.
PCspawn Bell 3
Spawn: Creatures & Bosses (3)
Spawn a Wolf
Run tame afterwards to keep it.
PCspawn Wolf 1Spawn a two-star Troll
The last number is level; level 3 is two stars. Level 10+ can freeze the game on death.
PCspawn Troll 1 3Spawn The Elder boss directly
Other boss IDs: Eikthyr, Bonemass, Dragon (Moder), GoblinKing (Yagluth), SeekerQueen, Fader.
PCspawn gd_king
Most-searched commands and base-game prefab names only. Deep North IDs and undocumented 1.0 dev commands are omitted; run help in-game for the full list.
FAQ
How do I enable console commands in Valheim?
Turn on Enable Console in Settings > Gameplay (or add -console in Steam), press F5, then type devcommands. Cheats work in single-player or a world you host, not on dedicated servers.
Do Valheim cheats disable achievements?
Yes in 1.0. Most devcommands, such as spawn, lock your character and world out of achievements, and spawned items are marked cheated. freefly is exempt. Hotfix 1.0.12 added yesiuseddevcommandsbutiwantmyachievementsanyway to opt back in.
Does Valheim have a console on Xbox or PC Game Pass?
Yes, both. On Xbox, turn on Enable Console in Settings > Gameplay, then hold LB, RB, LT and RT and press Menu. On PC Game Pass, use the same toggle or a shortcut with -console, then press F5.
How do I spawn items in Valheim?
After devcommands, type spawn, the exact prefab name and an amount, for example spawn Wood 50. Items drop beside you. Add a level for creatures: spawn Troll 1 3 gives a two-star Troll.
Checked against
- Iron Gate - Valheim 1.0 FAQ (achievements and the cheat flag)
- Iron Gate - Patch 0.221.4 notes (Enable Console setting)
- Iron Gate - Hotfix 1.0.12 notes (achievements opt-in)
- Valheim Wiki - Developer console
- Valheim Wiki - Item IDs
- Jotunn modding docs - Item list generated from Valheim 1.0.7 game data
- PC Gamer - Valheim 1.0 cheats and console commands
- GamesRadar - Valheim cheats, console commands and spawn list
Found a code that does not work? Tell us through the contact page and we will recheck it.
More cheats
Sims, Minecraft and sandbox games