Valheim DB

Valheim console commands and cheats

131 commands, 70 of them cheats, plus 25 emotes.

Valheim has a built-in console. You turn it on in the settings or with the -console launch option, then press F5 in game. Some commands work straight away, like help for the list and pos for your position.

The cheats, also called dev commands, need devcommands first. That unlocks god, ghost, fly, goto, spawn, tod, killall, exploremap, raiseskill and the rest. They only work in a world you host or, on a dedicated server, for admins. Using one stops that character and world from earning achievements.

To spawn an item or creature you need its prefab name, which isn't always its in-game name. The Valheim spawn IDs list has every item and creature code. To teleport with goto, the seed map copies the command for any spot in your world.

Open the console

  1. Turn on Settings › Gameplay › Enable Console, or start the game with the -console launch option (it overrides the setting).
  2. In game, press F5. On a gamepad: LT + LB + Start.
  3. Type help to list the commands you can use right now.

Commands that aren't cheats also work in chat without the console: type / and the command, e.g. /sit.

Cheats

  • devcommands turns cheats on and off. They only work in a world you host: single player, or a game you started that others joined.
  • The first cheat a character uses asks you to type confirmcheats. After that, achievements can't be unlocked for that character or that world.
  • Dedicated servers: players listed in the server's adminlist.txt can run devcommands and the commands marked Admin; they run on the server. Other cheats don't work there.

All commands

Cheats
needs devcommands
Host
only on the computer running the world
Admin
a dedicated server's admins can run it
CommandArgumentsWhat it doesNeeds
achievementsnoneShows player achievement info.Host
addstatus[name]Adds a status effect by its ID, e.g. Rested, Burning, SoftDeath, Wet.Cheats
adrenaline[amount]Sets your adrenaline level (100 if no number is given).Cheats
aggravatenoneMakes neutral creatures within 20 m hostile.Cheats
altbiomsnoneList of biomes with modifiers.Cheats
ban[name/ip/userID]Ban user.Admin
bannednoneList banned users.Admin
beard[name]Changes the beard.—
bind[keycode] [command and parameters]Bind a key to a console command. note: may cause conflicts with game controls.—
biomeinfononeInfo about current biome sector.Cheats
catch[fishname] [level]Simulates catching a fish (level 4 at most). Names: Spawn IDs.

Values: Fish1, Fish2, Fish3, Fish4_cave, Fish5, Fish6, Fish7, Fish8, Fish9, Fish10, Fish11, Fish12

Cheats
cinematic[name]Play cinematic.Cheats
cinematicsleep[name]Play cinematic on next sleep for everyone.Cheats
clearnoneClear the console window.—
clearpopupsnoneStops all current unlock UI messages.—
clearstatusnoneClear any status modifiers.Cheats
crnoneUnloads unused assets.—
debugmodenoneToggles debug mode, which adds keys: Z fly, B no build cost, K kill enemies, L remove item drops, Left Ctrl + middle-click on the map to teleport there.Cheats
devcommandsnoneEnables cheats.Admin
dienoneKill yourself.—
dpsdebugnoneToggle dps debug print.Cheats
env[env]Override environment.Cheats
event[name]Starts a raid event.Cheats
exclusivefullscreennoneChanges window mode to exclusive fullscreen, or back to borderless.—
exploremapnoneExplore entire map.Cheats
ffsmoothnoneFreefly smoothness.—
filtercraft[name]Filters crafting list to contain part of text.—
find[text] [pingmax]Searches loaded objects and location list matching name and pings them on the map. pingmax defaults to 1, if more will place pins on map instead.Cheats
findbiome[text]Marks the centre of every biome sector on the map whose biome or variation matches the text.Cheats
findbiometp[text]Teleports you to the closest biome sector matching the text.Cheats
findtp[text] [index=-1] [closerange=30]Searches loaded objects and location list matching name and teleports you to the closest one outside of closerange. Specify an index to tp to any other in the found list, a minus value means index by closest.Cheats
fly[speed]Toggles fly mode; a number sets the fly speed.Cheats
forcedelete[radius] [*name]Force remove all objects within given radius. If name is entered, only deletes items with matching names. Caution! Use at your own risk. Make backups! Radius default: 5, max: 150.Cheats
fov[degrees]Changes the camera field of view; without a number it prints it.—
freeflynoneFreefly photo mode.—
gcnoneShows garbage collector information.—
genlocnoneRegenerate all locations.HostAdmin
getstat[stat]Prints one of your player stats.
207 values

Deaths, CraftsOrUpgrades, Builds, Jumps, Cheats, EnemyHits, EnemyKills, EnemyKillsLastHits, PlayerHits, PlayerKills, HitsTakenEnemies, HitsTakenPlayers, ItemsPickedUp, Crafts, Upgrades, PortalsUsed, DistanceTraveled, DistanceWalk, DistanceRun, DistanceSail, DistanceAir, TimeInBase, TimeOutOfBase, Sleep, ItemStandUses, ArmorStandUses, WorldLoads, TreeChops, Tree, TreeTier0, TreeTier1, TreeTier2, TreeTier3, TreeTier4, TreeTier5, LogChops, Logs, MineHits, Mines, MineTier0, MineTier1, MineTier2, MineTier3, MineTier4, MineTier5, RavenHits, RavenTalk, RavenAppear, CreatureTamed, FoodEaten, SkeletonSummons, ArrowsShot, TombstonesOpenedOwn, TombstonesOpenedOther, TombstonesFit, DeathByUndefined, DeathByEnemyHit, DeathByPlayerHit, DeathByFall, DeathByDrowning, DeathByBurning, DeathByFreezing, DeathByPoisoned, DeathBySmoke, DeathByWater, DeathByEdgeOfWorld, DeathByImpact, DeathByCart, DeathByTree, DeathBySelf, DeathByStructural, DeathByTurret, DeathByBoat, DeathByStalagtite, DoorsOpened, DoorsClosed, BeesHarvested, SapHarvested, TurretAmmoAdded, TurretTrophySet, TrapArmed, TrapTriggered, PlaceStacks, PortalDungeonIn, PortalDungeonOut, BossKills, BossLastHits, SetGuardianPower, SetPowerEikthyr, SetPowerElder, SetPowerBonemass, SetPowerModer, SetPowerYagluth, SetPowerQueen, SetPowerAshlands, SetPowerDeepNorth, UseGuardianPower, UsePowerEikthyr, UsePowerElder, UsePowerBonemass, UsePowerModer, UsePowerYagluth, UsePowerQueen, UsePowerAshlands, UsePowerDeepNorth, DeathByCatapult, DeathByCinderFire, DeathByAshlandsOcean, DeathByIncinerator, CraftFood, CraftFoodBonus, CraftGrill, CraftGrillBurnt, CraftGrillBonus, CraftWeapon, CraftArmor, CraftTrinket, CraftAmmo, CraftMaterial, CraftTool, CraftTorch, CraftBait, CraftOther, HarvestCrop, HarvestBerry, HarvestMushroom, HarvestVine, HarvestBonus, ConsecutiveDaysSurvived, ConsecutiveDaysSurvivedMax, MaxBuildingHeight, MaxBuildingHeightWorld, MaxComfort, TreasureBuriedFound, TreasureDungeonFound, TreasureLocationFound, LeviathanSink, LavaLeviathanSink, ExploreNorth, ExploreSouth, ExploreEast, ExploreWest, ExploreNorthNoMap, ExploreSouthNoMap, ExploreEastNoMap, ExploreWestNoMap, BossKillMultiplayer, BossKillSolo, VillagePointsMax, DeepestDungeon, DistanceSailHelm, PlayerSpawn, DeathByTreeTier0, DeathByTreeTier1, DeathByTreeTier2, DeathByTreeTier3, DeathByTreeTier4, DeathByTreeTier5, FishHooked, FishLost, FishCaught, FishCaughtTier0, FishCaughtTier1, FishCaughtTier2, FishCaughtTier3, FishCaughtTier4, FishCaughtTier5, FishCaughtTier6, BuiltPieces, BuiltPiecesNoDebt, BuildPiecesRemoved, BuildClusterMisc, BuildClusterCrafting, BuildClusterBuilding, BuildClusterFloor, BuildClusterWall, BuildClusterRoof, BuildClusterArchitecture, BuildClusterFurniture, BuildClusterLighting, BuildClusterDecor, BuildClusterStorage, BuildClusterTransport, BuildClusterFood, BuildClusterMeads, BuildClusterFeasts, BuildClusterDefense, BuildClusterStacks, BuildClusterStairs, BuildClusterDoors, BuildClusterSeasonal, TamedPetting, TamedCommand, TreeFir, TreeOak, TreePine, TreeAshlands, TreeYggdrasilShoot, TreeSwamp, TreeBeech, TreeBirch, TreeSnowFir, TreeSnowPine, DeathByDrawBridge, DeathByAshlandsLava, Count, None

Host
ghost[on/off]Ghost mode: creatures don't notice you. Without on/off it toggles.Cheats
god[on/off]Invincible mode. Without on/off it toggles.Cheats
goto[x,z]Teleport.Cheats
hair[name]Changes the hair.—
haslocationnoneCheck if zone has location.—
healnoneHeal to full health & stamina.Cheats
heightnonePrints height from worldgen at current position.—
helpnoneShows a list of console commands (optional: help 2 4 shows the second quarter)—
infononePrint system info.—
inventorycleannoneThrows out any items in inventory on invalid positions.—
inventorysize[rows]Sets the number of inventory rows (0-9); items that no longer fit drop. Without a number it prints the current size.Cheats
itemset[name] [item level override] [keep]Spawn a premade named set, add 'keep' to not drop current items.Cheats
kick[name/ip/userID]Kick user.Admin
killallnoneKills nearby creatures, tamed ones too, and destroys spawners.Cheats
killenemiesnoneKills nearby enemies and destroys spawners.Cheats
killenemycreaturesnoneKills nearby enemies.Cheats
killtamenoneKill nearby tame creatures.Cheats
listkeysnoneLists the world's global keys and the server option keys.CheatsAdmin
location[name] [SAVE]Spawns a location 10 m in front of you. World saving is then off until you restart, unless you add SAVE.Cheats
lodbias[bias]Sets the distance LOD bias; without a number it prints it.—
maxfps[FPS]Sets fps limit.—
model[0/1]Changes the player model (0 male, 1 female).—
nextseed[seed]Forces the next dungeon to a seed (saving is then disabled).Cheats
nocost[on/off]No build cost. Without on/off it toggles.Cheats
nomapnoneDisables map for this character. If used as host, will disable for all joining players from now on.—
noportalsnoneDisables portals for server.—
nospawn[on/off]Toggles natural spawning of monsters.Cheats
optterrainnoneOptimize old terrain modifications.—
pevents[list/start/stop/here]Lists, starts or stops player events.Cheats
pingnonePing server.—
players[count]Forces difficulty scaling as if this many players were nearby (0 resets).CheatsAdmin
posnonePrint current player position.—
printbindsnonePrints current binds.—
printcreaturesnoneShows counts and levels of active creatures.Cheats
printlocationsnoneShows counts of loaded locations.Cheats
printnetobj[radius = 5]Lists number of network objects by name surrounding the player.Cheats
printseedsnonePrint seeds of loaded dungeons.—
pukenoneEmpties your stomach of food.Cheats
raiseskill[skill] [amount]Raises a skill by the amount; All raises every skill.

Values: Swords, Knives, Clubs, Polearms, Spears, Blocking, Axes, Bows, ElementalMagic, BloodMagic, Unarmed, Pickaxes, WoodCutting, Crossbows, Jump, Sneak, Run, Swim, Fishing, Cooking, Farming, Crafting, Dodge, Ride, All

Cheats
randomeventnoneStarts a random raid event.Cheats
recall[*name]Recalls players to you, optionally that match given name.Cheats
removebirdsnoneRemove all birds.—
removedropsnoneRemove all item-drops in area.—
removefishnoneRemove all fish.—
removekey[key]Removes a global key.HostAdmin
removekeyplayer[key]Removes a player key.Cheats
repairallnoneRepairs all equipment.Cheats
resetbindsnoneResets all custom binds to default dev commands.—
resetcharacternoneReset character data.Cheats
resetenvnoneDisables environment override.Cheats
resetkeysnoneClears all global keys and your player keys.CheatsAdmin
resetknownitemsnoneReset character known items & recipes.—
resetmapnoneReset map exploration.Cheats
resetsharedmapnoneRemoves any shared map data from cartography table.—
resetskill[skill]Resets a skill; All resets every skill.

Values: Swords, Knives, Clubs, Polearms, Spears, Blocking, Axes, Bows, ElementalMagic, BloodMagic, Unarmed, Pickaxes, WoodCutting, Crossbows, Jump, Sneak, Run, Swim, Fishing, Cooking, Farming, Crafting, Dodge, Ride, All

Cheats
resetspawnnoneResets spawn location.—
resetwindnoneEnds the wind override.Cheats
resetworldkeysnoneResets all world modifiers to default.HostAdmin
respawntime[seconds]Sets the respawn time.Cheats
restartpartynoneRestart playfab party network.Admin
s[text]Shout message.—
savenoneForce saving of world and resets world save interval.Admin
say[text]Chat message.—
setfuel[amount=10]Sets all light fuel to specified amount.Cheats
setkey[key]Sets a global key. A key or value the World Modifiers screen can't set counts as a cheat.
53 values

PlayerDamage, EnemyDamage, WorldLevel, EventRate, ResourceRate, StaminaRate, AdrenalineRate, EitrRate, DurabilityRate, FoodRate, MoveStaminaRate, StaminaRegenRate, SkillGainRate, SkillReductionRate, EnemySpeedSize, EnemyLevelUpRate, CarryWeightRate, PlayerEvents, Fire, DeathKeepEquip, DeathDeleteItems, DeathDeleteUnequipped, DeathSkillsReset, DeathKeepInventory, NoBuildCost, NoCraftCost, AllPiecesUnlocked, NoWorkbench, AllRecipesUnlocked, WorldLevelLockedTools, PassiveMobs, NoMap, NoPortals, NoBossPortals, DungeonBuild, TeleportAll, NoPseudoDrops, NoBuildingFall, NoHeavySnow, AllHeavySnow, Preset, defeated_eikthyr, defeated_dragon, defeated_goblinking, defeated_gdking, defeated_bonemass, activeBosses, StoneCircle, KilledTroll, killed_surtling, KilledBat, AshlandsOcean, Count

HostAdmin
setkeyplayer[key]Adds a player key.

Values: DamageTaken

Cheats
setpower[name]Sets your Forsaken power and resets its cooldown, e.g. GP_Eikthyr, GP_TheElder.Cheats
setworldmodifier[name] [value]Sets a world modifier value.

Values: Default, Combat, DeathPenalty, Resources, Raids, Portals

HostAdmin
setworldpreset[name]Resets all world modifiers to a named preset.

Values: Default, Custom, Normal, Casual, Easy, Hard, Hardcore, Immersive, Hammer

HostAdmin
skiptime[seconds]Skips ahead in game time (240 seconds if no number is given).CheatsAdmin
sleepnoneSkips to next morning.CheatsAdmin
snow[amount]Adds/removes amount of snowbuild on all nearby buildpieces.Cheats
sortcraft[type]Sorts crafting lists according to setting.

Values: Original, Name, Type, Weight, Count

—
spawn[name] [amount] [level] [radius] [p/e/i]Spawns a prefab. End the name with * to spawn every prefab containing it. p picks the spawned items up, e uses or equips them, i only spawns and picks up an item you don't already have. Names: Spawn IDs.Cheats
statsnoneShows player stats.Host
stopeventnoneStops the current raid event.Cheats
stopfirenonePuts out all spreading fires and smoke.Cheats
stopsmokenonePuts out all spreading fires.Cheats
tamenoneTame all nearby tameable creatures.Cheats
timenoneShows current time.—
timescale[target] [fadetime, default: 1, max: 3]Sets timescale.Cheats
tod[0-1] or -1Sets the time of day (0 to 1); -1 returns to the normal clock.Cheats
tombstone[name]Creates a tombstone with given name.Cheats
tutorialresetnoneReset tutorial data.—
unban[ip/userID]Unban user.Admin
unbind[keycode]Clears all binds connected to keycode.—
unlockcinematicsnoneToggles unlocking all cinematics in the main menu.Cheats
updatecovernoneForce update cover refresh.Host
vegetation[name]Spawns vegetation.Cheats
w[playername]Whispers a private message to a player.—
wind[angle] [intensity]Overrides the wind direction and strength.Cheats
xb:versionnonePrints mercurial hashset used for this build.—
yesiuseddevcommandsbutiwantmyachievementsanyway[1 = true/ 0 = false]Normally cheated items / pieces don't trigger achievements. Turn this on to disable cheat checks.—

Emotes

Each emote is a command: /wave in chat, or wave in the console.

Item and creature spawn IDs →