Skip to content
LAUNCH DAY GEAR

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
Valheim key art for The Bog Witch update
Cover art: Coffee Stain Publishing

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.

    PC
    devcommands
  • Confirm 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.

    PC
    confirmcheats
  • Opt back in to achievements after using cheats or mods

    Added in hotfix 1.0.12. Iron Gate leaves the decision to you.

    PC
    yesiuseddevcommandsbutiwantmyachievementsanyway
  • Toggle debug (creative) mode and its hotkeys

    B free building, Z fly, K kill nearby enemies, L clear drops. Type again to exit.

    PC
    debugmode

Player Cheats (9)

  • Toggle god mode: you cannot die

    Health stops at 1 instead of zero. Type again to turn it off.

    PC
    god
  • Toggle ghost mode: enemies ignore you

    PC
    ghost
  • Toggle flying

    Space rises, Ctrl descends. Same as pressing Z in debugmode.

    PC
    fly
  • Toggle a free camera for screenshots

    ffsmooth 1 smooths it, ffsmooth 0 resets. Exempt from the 1.0 cheat flag.

    PC
    freefly
  • Toggle free building and crafting, no materials or workbench needed

    Same as pressing B in debugmode.

    PC
    nocost
  • Refill health, stamina and eitr

    PC
    heal
  • Raise a skill by an amount

    Example: raiseskill jump 100. Use all for every skill, or a minus sign to lower.

    PC
    raiseskill <Skill> <amount>
  • Set a skill back to level 0

    Accepts all since patch 0.219.13.

    PC
    resetskill <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.

    PC
    itemset <SetName>

Creatures & Combat (4)

  • Tame every tameable creature nearby

    Spawn a Wolf or Boar first, then run tame.

    PC
    tame
  • Kill all nearby enemies and tamed animals

    Never kills players. Use killenemies to spare your tames.

    PC
    killall
  • Kill nearby enemies but spare tamed animals

    Same as pressing K in debugmode.

    PC
    killenemies
  • Delete all item drops nearby

    Same as pressing L in debugmode.

    PC
    removedrops

Map, Teleport & Events (7)

  • Reveal the entire map

    PC
    exploremap
  • Hide the whole map again

    Erases everything you have explored.

    PC
    resetmap
  • Show your current coordinates

    Use the x and z values with goto; ignore y.

    PC
    pos
  • Teleport to map coordinates

    Uses x and z only. Example: goto 2462 -104.

    PC
    goto <x> <z>
  • Spawn a world location by its name

    Skip SAVE and saving is disabled permanently. Example names: Eikthyrnir, StartTemple.

    PC
    location <LocationName> SAVE
  • Start a raid or event by name

    Examples: army_eikthyr, army_goblin, foresttrolls, skeletons, wolves.

    PC
    event <EventName>
  • Stop the current event

    PC
    stopevent

Time & Weather (4)

  • Set the time of day

    0 or 1 is midnight, 0.5 is noon. tod -1 restores the normal cycle.

    PC
    tod <0-1>
  • Skip the clock forward by a number of seconds

    PC
    skiptime <seconds>
  • Force a weather type

    Names: Clear, Rain, ThunderStorm, Snow, SnowStorm, Misty. resetenv restores normal weather.

    PC
    env <Name>
  • Set wind direction and strength

    Angle 0-360, intensity 0-1. resetwind restores natural wind.

    PC
    wind <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.

    PC
    spawn <PrefabName> <amount>
  • Spawn 50 Wood

    Spawns 50 single pieces, not a stack.

    PC
    spawn Wood 50
  • Spawn 50 Finewood

    PC
    spawn FineWood 50
  • Spawn 50 Corewood

    Corewood's prefab name is RoundLog.

    PC
    spawn RoundLog 50
  • Spawn 50 Stone

    PC
    spawn Stone 50
  • Spawn 500 Coins

    PC
    spawn Coins 500
  • Spawn 20 Bronze bars

    Copper and Tin spawn the same way. Ores are CopperOre and TinOre.

    PC
    spawn Bronze 20
  • Spawn 30 Iron bars

    Mined ore is IronScrap.

    PC
    spawn Iron 30
  • Spawn 30 Silver bars

    Ore is SilverOre.

    PC
    spawn Silver 30
  • Spawn 30 Black Metal bars

    Scrap is BlackMetalScrap.

    PC
    spawn BlackMetal 30

Spawn: Food, Weapons & Gear (7)

  • Spawn 10 Queen's Jam

    PC
    spawn QueensJam 10
  • Spawn a Black Metal Sword

    Note the lowercase m. The metal bar is BlackMetal.

    PC
    spawn SwordBlackmetal 1
  • Spawn the Stagbreaker sledgehammer

    PC
    spawn SledgeStagbreaker 1
  • Spawn the Cheat Sword

    Console-only sword that deals massive damage. Spawned items show as cheated.

    PC
    spawn SwordCheat 1
  • Spawn a Troll Leather Tunic

    Legs are ArmorTrollLeatherLegs, helmet is HelmetTrollLeather.

    PC
    spawn ArmorTrollLeatherChest 1
  • Spawn a Wolf Hide Chestpiece (Wolf armor)

    Legs are ArmorWolfLegs.

    PC
    spawn ArmorWolfChest 1
  • Spawn the Megingjord belt

    PC
    spawn BeltStrength 1

Spawn: Boss Summon Items (7)

  • Spawn 2 Deer Trophies, the offering that summons Eikthyr

    PC
    spawn TrophyDeer 2
  • Spawn 3 Ancient Seeds, the offering that summons The Elder

    PC
    spawn AncientSeed 3
  • Spawn 10 Withered Bones, the offering that summons Bonemass

    PC
    spawn WitheredBone 10
  • Spawn 3 Dragon Eggs, the offering that summons Moder

    PC
    spawn DragonEgg 3
  • Spawn 5 Fuling Totems, the offering that summons Yagluth

    PC
    spawn GoblinTotem 5
  • Spawn 3 Seeker Soldier Trophies, the offering that re-summons The Queen

    Only re-summons her after the first fight, which needs a Sealbreaker.

    PC
    spawn TrophySeekerBrute 3
  • Spawn 3 Bells, which you place around the arena to summon Fader

    Each Bell is crafted from 3 BellFragment.

    PC
    spawn Bell 3

Spawn: Creatures & Bosses (3)

  • Spawn a Wolf

    Run tame afterwards to keep it.

    PC
    spawn Wolf 1
  • Spawn a two-star Troll

    The last number is level; level 3 is two stars. Level 10+ can freeze the game on death.

    PC
    spawn Troll 1 3
  • Spawn The Elder boss directly

    Other boss IDs: Eikthyr, Bonemass, Dragon (Moder), GoblinKing (Yagluth), SeekerQueen, Fader.

    PC
    spawn 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

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

Browse cheats for every game