Valheim Console Commands: Cheats for PC

Published by

God mode and health

CheatCommandEffect
God modePCgodMakes you invincible and lets you one-shot enemies
Ghost modePCghostEnemies stop attacking you

Movement and camera

CheatCommandEffect
Free cameraPCfreeflyDetaches the camera for a free-flying spectator view
Show positionPCposPrints your current coordinates

Creatures and items

CheatCommandEffect
SpawnPCspawn <name> <amount> <level>Spawns a creature or item at your location
Tame nearbyPCtameInstantly tames every tameable creature nearby
Kill nearbyPCkillallKills every enemy and tamed creature nearby

Character and skills

CheatCommandEffect
Raise skillPCraiseskill <skill> <amount>Raises the chosen skill by the amount you set
Reset characterPCresetcharacterClears your inventory and resets every skill to zero

World and time

CheatCommandEffect
Skip to next dayPCsleepFast-forwards the game by one full day
Force weatherPCenv <name>Forces a specific debug weather or environment
Reset weatherPCresetenvReturns the weather to normal

A code here did not work? Tell us and it gets rechecked. Report a code

How to enter cheats in Valheim

PC

  1. Add -console to Valheim's Steam launch options.
  2. Load your single-player or hosted world.
  3. Press F5 to open the console, type devcommands and press Enter.
  4. Type the command and press Enter.

How to enable developer mode in Valheim

  1. In Steam, right-click Valheim, open Properties and type -console under Launch Options.
  2. On the Game Pass PC version, add -console to the end of the Target field in the game's shortcut.
  3. Load a world and press F5 to open the console.
  4. Type devcommands and press Enter to unlock the cheat commands.

Commands.gg: Valheim console commands, full list, item codes and generators

Can you use these cheats in multiplayer?

DatHost says the cheat commands are off on dedicated servers, and that this is a limit of the game rather than a setting your server host can change. To use god, spawn and the other cheats, play in single-player or in a world you host from your own game. DatHost: How to enable cheats and commands on your Valheim dedicated server

Compatibility notes

Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.

FAQ

How do you open the console in Valheim?

Add -console to the game's Steam launch options, then press F5 during a game.

Is there a god mode command in Valheim?

Yes. After typing devcommands, god makes you invincible and lets you one-shot enemies.

Do Valheim console commands disable achievements?

Yes. Using devcommands permanently marks that character and world as ineligible for achievements.

Is there an item spawn command in Valheim?

Yes. spawn, followed by a name, amount and level, spawns a creature or item where you're standing.

Do console commands work in multiplayer?

Only if you're hosting the world or have been made admin on it.

Part of

References: Commands.gg: Valheim console commands, full list, item codes and generators; Steam Community Guide: (Console Commands) Cheats and Codes List; GameRevolution: Valheim console commands not working fix; DatHost: How to enable cheats and commands on your Valheim dedicated server.