Valheim Console Commands: Cheats for PC
- PC Add -console to Steam launch options, press F5, type devcommands, then type a command and press Enter.
Published by Andrew B.
No cheats match that filter.
God mode and health
| Cheat | Command | Effect |
|---|---|---|
| God mode | PCgod | Makes you invincible and lets you one-shot enemies |
| Ghost mode | PCghost | Enemies stop attacking you |
Movement and camera
| Cheat | Command | Effect |
|---|---|---|
| Free camera | PCfreefly | Detaches the camera for a free-flying spectator view |
| Show position | PCpos | Prints your current coordinates |
Creatures and items
| Cheat | Command | Effect |
|---|---|---|
| Spawn | PCspawn <name> <amount> <level> | Spawns a creature or item at your location |
| Tame nearby | PCtame | Instantly tames every tameable creature nearby |
| Kill nearby | PCkillall | Kills every enemy and tamed creature nearby |
Character and skills
| Cheat | Command | Effect |
|---|---|---|
| Raise skill | PCraiseskill <skill> <amount> | Raises the chosen skill by the amount you set |
| Reset character | PCresetcharacter | Clears your inventory and resets every skill to zero |
World and time
| Cheat | Command | Effect |
|---|---|---|
| Skip to next day | PCsleep | Fast-forwards the game by one full day |
| Force weather | PCenv <name> | Forces a specific debug weather or environment |
| Reset weather | PCresetenv | Returns 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
- Add -console to Valheim's Steam launch options.
- Load your single-player or hosted world.
- Press F5 to open the console, type devcommands and press Enter.
- Type the command and press Enter.
How to enable developer mode in Valheim
- In Steam, right-click Valheim, open Properties and type -console under Launch Options.
- On the Game Pass PC version, add -console to the end of the Target field in the game's shortcut.
- Load a world and press F5 to open the console.
- 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.
- Patch 0.148.6 (2021) GameRevolution says this update turned the console off by default and replaced the old imacheater command with devcommands. Typing imacheater no longer does anything. GameRevolution: Valheim console commands not working fix
- Xbox and Game Pass Commands.gg says the Xbox version needs no launch option: press RB, LB, RT and LT together, then the Menu button, then A to bring up the keyboard. On the Game Pass PC version you add -console to the end of the game shortcut's Target field instead of Steam's launch options. Commands.gg: Valheim console commands, full list, item codes and generators
- Dedicated servers DatHost says cheat commands are switched off on dedicated servers by the game itself, not by the host, so devcommands won't unlock god, spawn and the rest there. DatHost: How to enable cheats and commands on your Valheim dedicated server
- spawn command Commands.gg warns that spawning a creature above level 10 can crash the game when that creature dies. Commands.gg: Valheim console commands, full list, item codes and generators
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.
