Valheim cheats: All codes and console commands to wield godly power

Looking for Valheim cheats and console commands on Steam or PC Game Pass? The Viking survival game may appear fairly peaceful when you're starting out, but you'll soon find mythical Valheim bosses to battle. You might discover that you need some extra juice to weather Valheim's tougher regions—or maybe you just want to build the ultimate base without having to worry about gathering materials. Here are all the Valheim console commands and cheats from god mode to item spawning, and how to activate them whether you're playing on Steam or on PC Game Pass.

Conquer Viking purgatory with these Valheim guides

Valheim Stagbreaker war hammer

(Image credit: Iron Gate Studios)

Valheim guide: Ten beginner tips
Valheim flint: How to get it
Valheim trader: Find him easily
Valheim workbench: How to build and upgrade it
Valheim dedicated server: How to get one working

You can only use Valheim console commands in singleplayer mode but there are lots of fun cheats to use, including a god mode which makes you invulnerable, the ability to add skill points and spawn weapons and armor, and even the power to fly through the air like Thor. There's also a 'debug mode' that lets you build without the need for a workbench or resources. For those in a multiplayer world, there are some console commands that can be used by server admins and these have also been listed below.

With the release of Valheim's Mistlands update, you may be looking for some new Mistlands cheats to give yourself a shortcut to all the new resources, armor, and weapons. We've added the ones we've found in Mistlands cheats section below.

How to use Valheim cheats

Activating Valheim cheats with 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.

  1. Navigate to the game's installation folder. Typically, it's C:\XboxGames\Valheim\Content
  2. In that folder, find Valheim.exe
  3. Right-click Valheim.exe and select Create shortcut
  4. Drag the shortcut to your desktop or preferred location
  5. Right-click the shortcut and select Properties
  6. In the Shortcut tab, add -console to the end of the Target field
  7. Click Apply, then click OK
  8. Launch the game from the shortcut

(Image credit: Windows)

Activating Valheim cheats with 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:

  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

Valheim cheats and console commands for singleplayer

(Image credit: Iron Gate Studios)

Valheim cheats and console commands for singleplayer

To activate cheats once you're in the game, open the console by pressing F5. Pressing F5 will close it again as well.

Type devcommands and press enter (previously, the command was 'imacheater' but that has changed). Then you'll be able to use the following cheats in singleplayer mode. They won't work on a multiplayer server.

To deactivate cheats, type devcommands and press enter again.

god - Enables god mode.
heal - Restores current max health.
puke - Empties stomach of food and resets health and stamina.
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

hair - Removes character's hair (permanently)
beard - Removes character's beard (permanently)
model 0 - Switches character to masculine body
model 1
- Switches character to feminine body

Valheim cheats: Debug/creative mode commands

Valheim commands: Creative mode

Also in singleplayer, you can enter debug mode to access a few more cheats and what is essentially a creative mode, where you can build without a workbench or resources.

debugmode - Enters creative mode.
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.

Valheim cheats: Server admin console commands

Valheim admin commands for multiplayer

Admins on multiplayer servers can use the console to enter commands on the server.

To open the console, the admin can press F5. Then the following commands can be entered.

help - Shows all the available server commands
kick [name/ip/userID] - Kicks the named user
ban [name/ip/userID] - Bans the named user
unban [ip/userID] - Unbans the named user
banned - Shows a full list of banned users
ping - Pings the server to measure latency.
lodbias [number] - Sets the draw distance for the server. The number can be set from 1 to 5.
info - Prints the current system information.

Valheim cheats for Mistlands

Valheim Mistlands cheats

The Valheim Mistlands update added a number of new resources, weapons, armor, foods, and other items to the game. We're collecting them as we find them, and listing them below.

To spawn an item from the Mistlands update, type spawn [item] [number] in the console. For instance, if you wanted 10 yggdrasil wood, you would type:

spawn yggdrasilwood 10

Here are the item codes for the spawnable Mistlands items we've found so far:

Mistlands crafting resources:

Bilebag
blackcore
Blackmarble
carapace
DvergrKeyFragment
eitr
GiantBloodSack
Mandible
sap
ScaleHide
Softtissue
wisp
yagluthdrop
Yggdrasilwood

Mistlands Weapons:

AxeJotunBane
BoneSpineSnap
Himminafl
KnifeSkollAndHati
SledgeDemolisher
SwordMistwalker
THSwordKrom

Mistlands Armor:

ArmorCarapaceChest
ArmorCarapace
ArmorMageChest
ArmorMageLegs
CapeFeather|
HelmetCarapace
HelmetMage
ShieldCarapace
ShieldCarapaceBuckler

Mistlands Foods:
cookedegg
MagicallyStuffedShroom
MeatPlatter
MisthareSupreme
MushroomMagecap
seekeraspic
YggdrasilPorridge

Valheim cheats: Item spawn list

Valheim spawn items list

To spawn items, type spawn in the console, followed by the item you want, followed by the amount of that item. For instance, if you wanted 50 coal, you would type:

spawn Coal 50

Important note: items are case-sensitive! Also note, some items are not fully implemented in the game yet. Items won't appear in your inventory but beside you.

Here's what you can spawn:

Amber

AmberPearl

AncientSeed

Barley

BarleyFlour

BarleyWine

BarleyWineBase

BeechSeeds

BlackMetal

BlackMetalScrap

Bloodbag

BoneFragments

Bronze

BronzeNails

BoneFragments

CarrotSeeds

Chitin

Coal

Coins

Copper

CopperOre

CryptKey

Crystal

Dandelion

DeerHide

DragonEgg

DragonTear

ElderBark

Entrails

Feathers

FineWood

FirCone

FishingBait

FishRaw

FishWraps

Flametal

FlametalOre

Flax

Flint

FreezeGland

GreydwarfEye

Guck

HardAntler

Iron

IronNails

IronOre

IronScrap

LeatherScraps

LinenThread

LoxMeat

LoxPelt

LoxPie

Needle

Obsidian

Ooze

PineCone

QueenBee

Ruby

SerpentScale

SharpeningStone

Silver

SilverNecklace

SilverOre

Stone

SurtlingCore

Thistle

Tin

TinOre

TrollHide

TurnipSeeds

WitheredBone

WolfFang

WolfPelt

Wood

YmirRemains

NeckTail

RawMeat

Resin

RoundLog

SerpentMeat

YagluthDrop

Armor

ArmorBronzeChest

ArmorBronzeLegs

ArmorIronChest

ArmorIronLegs

ArmorLeatherChest

ArmorLeatherLegs

ArmorPaddedCuirass

ArmorPaddedGreaves

ArmorRagsChest

ArmorRagsLegs

ArmorTrollLeatherChest

ArmorTrollLeatherLegs

ArmorWolfChest

ArmorWolfLegs

CapeDeerHide

CapeLinen

CapeLox

CapeOdin

CapeTest

CapeTrollHide

CapeWolf

HelmetBronze

HelmetDrake

HelmetDverger

HelmetIron

HelmetLeather

HelmetOdin

HelmetPadded

HelmetTrollLeather

HelmetYule

Arrows

ArrowBronze

ArrowFire

ArrowFlint

ArrowFrost

ArrowIron

ArrowNeedle

ArrowObsidian

ArrowPoison

ArrowSilver

ArrowWood

Weapons

AtgeirBlackmetal

AtgeirBronze

AtgeirIron

Battleaxe

Bow

BowDraugrFang

BowFineWood

BowHuntsman

KnifeBlackMetal

KnifeChitin

KnifeCopper

KnifeFlint

MaceBronze

MaceIron

MaceNeedle

MaceSilver

ShieldBanded

ShieldBlackmetal

ShieldBlackmetalTower

ShieldBronzeBuckler

ShieldIronSquare

ShieldIronTower

ShieldKnight

ShieldSerpentscale

ShieldSilver

ShieldWood

ShieldWoodTower

SledgeIron

SledgeStagbreaker

SpearBronze

SpearChitin

SpearElderbark

SpearFlint

SpearWolfFang

SwordBlackmetal

SwordBronze

SwordCheat

SwordIron

SwordIronFire

SwordSilver

Tankard

TankardOdin

Club

Torch

Tools

AxeBronze

AxeFlint

AxeIron

AxeStone

AxeBlackMetal

PickaxeAntler

PickaxeBronze

PickaxeIron

PickaxeStone

Cultivator

FishingRod

Hammer

Hoe

Magic Items

BeltStrength

Wishbone

HelmetDverger

Enemies

Blob

BlobElite

Boar

Boar_piggy

Crow

Deathsquito

Deer

Draugr

Draugr_Elite

Draugr_Ranged

Fenring

Ghost

Goblin

GoblinArcher

GoblinBrute

GoblinClub

GoblinHelmet

GoblinLegband

GoblinLoin

GoblinShaman

GoblinShoulders

GoblinSpear

GoblinSword

GoblinTorch

GoblinTotem

Greydwarf

Greydwarf_Elite

Greydwarf_Root

Greydwarf_Shaman

Greyling

Leech

Lox

Neck

Seagal

Serpent

Skeleton

Skeleton_Poison

StoneGolem

Surtling

Troll

Valkyrie

Wolf

Wolf_cub

Wraith

Bosses

Eikthyr

gd_king

Bonemass

Dragon

GoblinKing

Food

Bread

BloodPudding

Blueberries

Carrot

CarrotSoup

Cloudberry

CookedLoxMeat

CookedMeat

FishCooked

Honey

Mushroom

MushroomBlue

MushroomYellow

NeckTailGrilled

Raspberry

QueensJam

Sausages

SerpentMeatCooked

SerpentStew

Turnip

TurnipStew

Mead

MeadBaseFrostResist

MeadBaseHealthMedium

MeadBaseHealthMinor

MeadBasePoisonResist

MeadBaseStaminaMedium

MeadBaseStaminaMinor

MeadBaseTasty

MeadFrostResist

MeadHealthMedium

MeadHealthMinor

MeadPoisonResist

MeadStaminaMedium

MeadStaminaMinor

MeadTasty

Vehicles

Cart

Raft

Karve

VikingShip

Trailership

Vendor

Haldor

Trophies

TrophyBlob

TrophyBoar

TrophyBonemass

TrophyDeathsquito

TrophyDeer

TrophyDragonQueen

TrophyDraugr

TrophyDraugrElite

TrophyDraugrFem

TrophyEikthyr

TrophyFenring

TrophyForestTroll

TrophyFrostTroll

TrophyGoblin

TrophyGoblinBrute

TrophyGoblinKing

TrophyGoblinShaman

TrophyGreydwarf

TrophyGreydwarfBrute

TrophyGreydwarfShaman

TrophyHatchling

TrophyLeech

TrophyLox

TrophyNeck

TrophySerpent

TrophySGolem

TrophySkeleton

TrophySkeletonPoison

TrophySurtling

TrophyTheElder

TrophyWolf

TrophyWraith

Enemy Spawners

BonePileSpawner

Spawner_Blob

Spawner_BlobElite

Spawner_Boar

Spawner_Draugr

Spawner_Draugr_Elite

Spawner_Draugr_Noise

Spawner_Draugr_Ranged

Spawner_Draugr_Ranged_Noise

Spawner_Draugr_respawn_30

Spawner_DraugrPile

Spawner_Fenring

Spawner_Fish4

Spawner_Ghost

Spawner_Goblin

Spawner_GoblinArcher

Spawner_GoblinBrute

Spawner_GoblinShaman

Spawner_Greydwarf

Spawner_Greydwarf_Elite

Spawner_Greydwarf_Shaman

Spawner_GreydwarfNest

Spawner_Hatchling

Spawner_imp

Spawner_imp_respawn

Spawner_Leech_cave

Spawner_Location_Elite

Spawner_Location_Greydwarf

Spawner_Location_Shaman

Spawner_Skeleton

Spawner_Skeleton_night_noarcher

Spawner_Skeleton_poison

Spawner_Skeleton_respawn_30

Spawner_StoneGolem

Spawner_Troll

Spawner_Wraith

Misc.

GlowingMushroom

ancientbarkspear_projectile

aoe_nova

barrell

bed

bee_aoe

beech_log

beech_log_half

Beech_Sapling

Beech_small1

Beech_small2

Beech_Stub

Beech1

Beehive

Birch_log

Birch_log_half

Birch1

Birch1_aut

Birch2

Birch2_aut

BirchStub

blastfurnace

blob_aoe

BlueberryBush

boar_ragdoll

BombOoze

bonemass_aoe

bonemass_throw_projectile

bonfire

BossStone_Bonemass

BossStone_DragonQueen

BossStone_Eikthyr

BossStone_TheElder

BossStone_Yagluth

bow_projectile

bow_projectile_fire

bow_projectile_frost

bow_projectile_needle

bow_projectile_poison

bronzespear_projectile

bucket

Bush01

Bush01_heath

Bush02_en

CargoCrate

CastleKit_braided_box01

CastleKit_groundtorch

CastleKit_groundtorch_green

CastleKit_groundtorch_unlit

CastleKit_pot03

Chain

charcoal_kiln

Chest

CloudberryBush

cultivate

dead_deer

Deathsquito_sting

deer_ragdoll

DeerGodExplosion

DG_Cave

DG_ForestCrypt

DG_GoblinCamp

DG_MeadowsFarm

DG_MeadowsVillage

DG_SunkenCrypt

digg

digg_v2

dragon_ice_projectile

draugr_arrow

draugr_bow_projectile

Draugr_elite_ragdoll

Draugr_ranged_ragdoll

Draugr_ragdoll

draugr_axe

draugr_bow

draugr_sword

eikthyr_ragdoll

dragoneggcup

dungeon_forestcrypt_door

dungeon_sunkencrypt_irongate

eventzone_bonemass

eventzone_eikthyr

eventzone_gdking

eventzone_goblinking

eventzone_moder

EvilHeart_Forest

EvilHeart_Swamp

Fenring_ragdoll

fermenter

fire_pit

FireFlies

FirTree

FirTree_log

FirTree_log_half

FirTree_oldLog

FirTree_Sapling

FirTree_small

FirTree_small_dead

FirTree_Stub

Fish1

Fish2

Fish3

Fish4_cave

FishingRodFloat

FishingRodFloatProjectile

Flies

flintspear_projectile

ForestTroll_ragdoll

forge

forge_ext1

forge_ext2

forge_ext3

forge_ext4

forge_ext5

forge_ext6

gdking_Ragdoll

gdking_root_projectile

goblin_banner

goblin_bed

Goblin_Dragdoll

goblin_fence

goblin_pole

goblin_pole_small

goblin_roof_45d

goblin_roof_45d_corner

goblin_roof_cap

goblin_stairs

goblin_stepladder

goblin_totempole

goblin_woodwall_1m

goblin_woodwall_2m

goblin_woodwall_2m_ribs

GoblinArmband

GoblinBrute_ArmGuard

GoblinBrute_Attack

GoblinBrute_Backbones

GoblinBrute_ExecutionerCap

GoblinBrute_HipCloth

GoblinBrute_LegBones

GoblinBrute_ragdoll

GoblinBrute_RageAttack

GoblinBrute_ShoulderGuard

GoblinBrute_Taunt

GoblinKing_ragdoll

goblinking_totemholder

GoblinShaman_attack_poke

GoblinShaman_Headdress_antlers

GoblinShaman_Headdress_feathers

GoblinShaman_projectile_fireball

GoblinShaman_protect_aoe

GoblinShaman_ragdoll

GoblinShaman_Staff_Bones

GoblinShaman_Staff_Feathers

GoblinSpear_projectile

Greydwarf_elite_ragdoll

Greydwarf_ragdoll

Greydwarf_Shaman_ragdoll

Greydwarf_throw_projectile

Greyling_ragdoll

guard_stone

guard_stone_test

GuckSack

GuckSack_small

Hatchling

hatchling_cold_projectile

Hatchling_ragdoll

HealthUpgrade_Bonemass

HealthUpgrade_GDKing

hearth

HeathRockPillar

HeathRockPillar_frac

highstone

highstone_frac

horizontal_web

HugeRoot1

ice_rock1

ice_rock1_frac

ice1

IceBlocker

Imp_fireball_projectile

iron_grate

itemstand

itemstandh

Leech_cave

Leviathan

LocationProxy

loot_chest_stone

loot_chest_wood

LootSpawner_pineforest

lox_ragdoll

lox_stomp_aoe_OLD

marker01

marker02

MineRock_Copper

MineRock_Iron

MineRock_Meteorite

MineRock_Obsidian

MineRock_Stone

MineRock_Tin

MountainGraveStone01

mud_road

mudpile

mudpile_beacon

mudpile_frac

mudpile_old

mudpile2

mudpile2_frac

Neck_Ragdoll

Oak_log

Oak_log_half

Oak1

OakStub

odin

OLD_wood_roof

OLD_wood_roof_icorner

OLD_wood_roof_ocorner

OLD_wood_roof_top

OLD_wood_wall_roof

oozebomb_explosion

oozebomb_projectile

path

paved_road

Pickable_Barley

Pickable_Barley_Wild

Pickable_BogIronOre

Pickable_Branch

Pickable_Carrot

Pickable_Dandelion

Pickable_DolmenTreasure

Pickable_DragonEgg

Pickable_Flax

Pickable_Flax_Wild

Pickable_Flint

Pickable_ForestCryptRandom

Pickable_ForestCryptRemains01

Pickable_ForestCryptRemains02

Pickable_ForestCryptRemains03

Pickable_ForestCryptRemains04

Pickable_Item

Pickable_Meteorite

Pickable_MountainRemains01_buried

Pickable_Mushroom

Pickable_Mushroom_blue

Pickable_Mushroom_yellow

Pickable_Obsidian

Pickable_RandomFood

Pickable_SeedCarrot

Pickable_SeedTurnip

Pickable_Stone

Pickable_SunkenCryptRandom

Pickable_SurtlingCoreStand

Pickable_Thistle

Pickable_Tin

Pickable_Turnip

piece_artisanstation

piece_banner01

piece_banner02

piece_banner03

piece_banner04

piece_banner05

piece_bed02

piece_beehive

piece_bench01

piece_brazierceiling01

piece_cauldron

piece_chair

piece_chair02

piece_chest

piece_chest_private

piece_chest_wood

piece_cookingstation

piece_gift1

piece_gift2

piece_gift3

piece_groundtorch

piece_groundtorch_green

piece_groundtorch_wood

piece_jackoturnip

piece_maypole

piece_sharpstakes

piece_spinningwheel

piece_stonecutter

piece_table

piece_throne01

piece_walltorch

piece_workbench

piece_workbench_ext1

piece_workbench_ext2

piece_workbench_ext3

piece_workbench_ext4

piece_xmastree

PineTree

Pinetree_01

Pinetree_01_Stub

PineTree_log

PineTree_log_half

PineTree_log_halfOLD

PineTree_logOLD

PineTree_Sapling

Player

Player_ragdoll

Player_ragdoll_old

Player_tombstone

PlayerUnarmed

portal

portal_wood

projectile_beam

projectile_chitinharpoon

projectile_meteor

projectile_wolffang

raise

RaspberryBush

replant

Rock_3

Rock_3_frac

Rock_4

Rock_4_plains

Rock_7

Rock_destructible

Rock_destructible_test

rock1_mountain

rock1_mountain_frac

rock2_heath

rock2_heath_frac

rock2_mountain

rock2_mountain_frac

rock3_mountain

rock3_mountain_frac

rock3_silver

rock3_silver_frac

rock4_coast

rock4_coast_frac

rock4_copper

rock4_copper_frac

rock4_forest

rock4_forest_frac

rock4_heath

rock4_heath_frac

RockFinger

RockFinger_frac

RockFingerBroken

RockFingerBroken_frac

rockformation1

RockThumb

RockThumb_frac

root07

root08

root11

root12

rug_deer

rug_fur

rug_wolf

sapling_barley

sapling_carrot

sapling_flax

sapling_seedcarrot

sapling_seedturnip

sapling_turnip

shaman_attack_aoe

shaman_heal_aoe

ship_construction

shipwreck_karve_bottomboards

shipwreck_karve_bow

shipwreck_karve_chest

shipwreck_karve_dragonhead

shipwreck_karve_stern

shipwreck_karve_sternpost

shrub_2

shrub_2_heath

sign

sign_notext

silvervein

silvervein_frac

skeleton_bow

skeleton_mace

Skeleton_NoArcher

skeleton_sword

Skull1

Skull2

sledge_aoe

smelter

stake_wall

StaminaUpgrade_Greydwarf

StaminaUpgrade_Troll

StaminaUpgrade_Wraith

StatueCorgi

StatueDeer

StatueEvil

StatueHare

StatueSeed

stone_arch

stone_floor

stone_floor_2x2

stone_pile

stone_pillar

stone_stair

stone_wall_1x1

stone_wall_2x1

stone_wall_4x2

stoneblock_fracture

stonechest

stonegolem_attack1_spike

StoneGolem_clubs

StoneGolem_hat

Stonegolem_ragdoll

StoneGolem_spikes

stubbe

stubbe_spawner

sunken_crypt_gate

SwampTree1

SwampTree1_log

SwampTree1_Stub

SwampTree2

SwampTree2_darkland

SwampTree2_log

TentaRoot

tentaroot_attack

tolroko_flyer

TrainingDummy

TreasureChest_blackforest

TreasureChest_fCrypt

TreasureChest_forestcrypt

TreasureChest_heath

TreasureChest_meadows

TreasureChest_meadows_buried

TreasureChest_mountains

TreasureChest_plains_stone

TreasureChest_sunkencrypt

TreasureChest_swamp

TreasureChest_trollcave

troll_groundslam_aoe

troll_log_swing_h

troll_log_swing_v

Troll_ragdoll

troll_throw_projectile

tunnel_web

turf_roof

turf_roof_top

turf_roof_wall

VegvisirShard_Bonemass

vertical_web

vines

widestone

widestone_frac

windmill

Wolf_Ragdoll

wood_beam

wood_beam_1

wood_beam_26

wood_beam_45

wood_door

wood_dragon1

wood_fence

wood_floor

wood_floor_1x1

wood_gate

wood_ledge

wood_pole

wood_pole_log

wood_pole_log_4

wood_pole2

wood_roof

wood_roof_45

wood_roof_icorner

wood_roof_icorner_45

wood_roof_ocorner

wood_roof_ocorner_45

wood_roof_top

wood_roof_top_45

wood_stack

wood_stair

wood_stepladder

wood_wall_half

wood_wall_log

wood_wall_log_4x0.5

wood_wall_roof

wood_wall_roof_45

wood_wall_roof_top

wood_wall_roof_top_45

woodiron_beam

woodiron_pole

woodwall

wraith_melee

Christopher Livingston
Senior Editor

Chris started playing PC games in the 1980s, started writing about them in the early 2000s, and (finally) started getting paid to write about them in the late 2000s. Following a few years as a regular freelancer, PC Gamer hired him in 2014, probably so he'd stop emailing them asking for more work. Chris has a love-hate relationship with survival games and an unhealthy fascination with the inner lives of NPCs. He's also a fan of offbeat simulation games, mods, and ignoring storylines in RPGs so he can make up his own.