Valheim console commands let you enable god mode, spawn items, teleport around the map, fly, reveal unexplored areas, tame creatures, change the weather, modify skills and perform many other actions that are normally unavailable during standard gameplay.
This guide explains how to enable the Valheim console on PC and consoles, how to activate devcommands, and provides a useful list of Valheim cheats, spawn commands, map commands and administrator commands.
Important: Valheim 1.0 introduced achievement protections around many developer commands. If achievements matter to you, use a separate test world or character before experimenting with cheats.
Quick Valheim Console Commands List
These are some of the most useful Valheim console commands. Cheat-style commands generally require developer commands to be enabled first.
| Command | What It Does |
|---|---|
devcommands |
Enables or disables developer commands. |
god |
Toggles god mode. |
ghost |
Makes hostile creatures ignore your character. |
heal |
Restores your character’s health. |
fly |
Toggles flying where supported. |
freefly |
Activates the free camera. |
nocost |
Allows building and crafting without normal resource costs. |
exploremap |
Reveals the entire map. |
resetmap |
Resets map exploration. |
pos |
Displays your current coordinates. |
goto [x] [z] |
Teleports your character to specified coordinates. |
killenemies |
Kills nearby hostile enemies. |
tame |
Tames nearby tameable creatures. |
spawn [item] [quantity] [level] |
Spawns an item, creature or object. |
removedrops |
Removes dropped items nearby. |
save |
Forces the world to save. |
tod [value] |
Changes the time of day. |
wind [angle] [intensity] |
Changes wind direction and strength. |
resetwind |
Returns wind to normal. |
event [name] |
Starts the specified event. |
stopevent |
Stops the active event. |
How to Enable Valheim Console Commands
Before using most Valheim cheats on PC, you need to launch the game with console support enabled.
How to Enable the Valheim Console on Steam
- Open Steam.
- Go to your Library.
- Right-click Valheim and select Properties.
- Find the Launch Options field.
- Enter
-console. - Close the Properties window and launch Valheim.
- Enter a world and press F5 to open the console.
Valheim Console Commands on Xbox
Valheim also supports console access on Xbox. Controller users can open the console with the supported controller shortcut for their current game version. If the shortcut changes after an update, check the in-game control help screen.
Valheim Console Commands on Other Consoles
Console versions use controller shortcuts instead of the PC F5 key. Button mappings may change between updates, so confirm the current combination in the game’s control settings if the console does not open.
How to Enable Devcommands in Valheim
Opening the console alone does not enable most Valheim cheats. Open the console and enter:
devcommands
Press Enter. The game should confirm that developer commands are enabled. Enter devcommands again if you want to disable them.
Warning: Developer commands can make major changes to your world, character and inventory. Back up important saves before experimenting with unfamiliar commands.
Valheim Cheats and Developer Commands
Once devcommands is enabled, you can use commands that change normal gameplay rules.
| Valheim Cheat | Description |
|---|---|
god |
Activates or deactivates god mode. |
ghost |
Hostile creatures generally ignore your character. |
heal |
Restores health. |
puke |
Removes active food effects. |
fly |
Toggles character flight where supported. |
killenemies |
Kills nearby hostile creatures. |
killtame |
Kills nearby tamed creatures. |
killall |
Kills nearby enemies and tamed creatures. Use carefully. |
tame |
Attempts to tame nearby tameable creatures. |
removedrops |
Deletes nearby dropped items. |
save |
Forces a manual world save. |
Valheim Spawn Commands
The spawn command is one of the most useful Valheim console commands because it can create resources, equipment, creatures and other game objects.
Valheim Spawn Command Syntax
spawn [item-name] [quantity] [level]
For example:
spawn Coins 50
Another example:
spawn Iron 20
Useful Valheim Spawn Codes
| Spawn Code | Item |
|---|---|
Coins |
Coins |
Wood |
Wood |
FineWood |
Fine Wood |
Stone |
Stone |
Flint |
Flint |
Iron |
Iron |
Silver |
Silver |
BlackMetal |
Black Metal |
Obsidian |
Obsidian |
DeerHide |
Deer Hide |
TrollHide |
Troll Hide |
CarrotSeeds |
Carrot Seeds |
Spawn IDs may change between game versions. If a spawn command does not work, check the exact internal item or prefab name and test it in a backup world.
Valheim Map and Teleport Console Commands
| Command | Description |
|---|---|
exploremap |
Reveals the entire generated map. |
resetmap |
Resets explored map data. |
pos |
Shows your current world coordinates. |
goto [x] [z] |
Teleports you to the specified coordinates. |
How to Teleport with Valheim Console Commands
First enter:
pos
Then use the destination coordinates with:
goto 1000 500
Coordinate-based teleportation is useful for testing worlds, locating builds and returning to distant areas quickly.
Valheim Creative Mode and Building Commands
Players who mainly want to build can use developer commands to remove many normal survival restrictions.
Debug Mode
debugmode
On supported PC versions, debug mode enables additional creative controls. Common shortcuts can include flying, killing nearby enemies and no-cost building.
No-Cost Building
nocost
This removes many normal resource and crafting restrictions, making it useful for testing base layouts or constructing large creative builds.
Valheim Character and Skill Commands
| Command | What It Does |
|---|---|
raiseskill [skill] [amount] |
Raises the specified skill by the entered amount. |
resetskill [skill] |
Resets the specified skill. |
resetcharacter |
Resets major character data. Use with extreme caution. |
heal |
Restores health. |
puke |
Clears active food effects. |
Valheim Raise Skill Command Example
raiseskill Swords 10
Enter skill names carefully because incorrect internal skill names may not produce the expected result.
Valheim Time, Weather and Event Commands
| Command | Effect |
|---|---|
tod [number] |
Changes or overrides the current time of day. |
skiptime [seconds] |
Moves game time forward. |
sleep |
Advances time. |
wind [angle] [intensity] |
Sets wind angle and strength. |
resetwind |
Returns wind to normal dynamic behaviour. |
event [name] |
Starts a named event. |
stopevent |
Stops the active event. |
randomevent |
Starts a random event. |
Valheim Server Admin Commands
Not every Valheim console command is a cheat. Server administrators also have moderation and diagnostic commands.
| Server Command | Description |
|---|---|
help |
Displays commands currently available to you. |
ping |
Checks server latency. |
info |
Displays system or session information. |
kick [name/ip/userID] |
Kicks the specified player. |
ban [name/ip/userID] |
Bans the specified player. |
unban [ip/userID] |
Removes an existing ban. |
banned |
Shows the current banned-player list. |
Server permissions determine which commands are available. Developer cheats should not be assumed to work on a multiplayer server simply because the console opens.
Do Valheim Console Commands Disable Achievements?
Valheim 1.0 introduced achievements together with protections around developer-command use. Many cheat-oriented commands can affect normal achievement eligibility for a character or world.
If you want to earn achievements without developer assistance, the safest approach is to keep your normal survival save separate from any world used for console-command testing.
Valheim also includes the explicit command below for players who intentionally choose to opt back into achievement eligibility after using developer commands:
yesiuseddevcommandsbutiwantmyachievementsanyway
Use this only if you understand the effect of developer commands on your save and achievement progress.
Valheim Console Commands Not Working? Try These Fixes
1. Make Sure -console Is Enabled on PC
Steam players normally need -console in the game’s launch options before F5 console access works.
2. Type devcommands First
Commands such as god, spawn and other cheats generally need developer commands enabled.
3. Check Your F5 Key
Laptop keyboards sometimes require the Fn key to access F5.
4. Check Multiplayer Permissions
Developer commands are not automatically available to every player connected to a multiplayer server.
5. Check Command Spelling
Commands and internal spawn IDs must be entered correctly. Item identifiers may not always match their visible in-game names.
6. Check Whether Valheim Was Updated
Major Valheim updates can add new commands, alter old behaviour or change internal item and prefab names.
7. Type help
Enter help in the console to display commands recognised by your current game version.
Frequently Asked Questions About Valheim Console Commands
What is the command to enable cheats in Valheim?
Open the Valheim console and enter devcommands. This enables the developer commands required for most Valheim cheats.
What is the Valheim god mode command?
After enabling developer commands, enter god to toggle god mode.
How do I open the Valheim console?
On Steam, add -console to Valheim’s launch options, start the game and press F5 while inside a world.
How do I spawn items in Valheim?
Enable devcommands, then use spawn [item-name] [quantity] [level]. For example, spawn Coins 50.
How do I reveal the entire map in Valheim?
Enter exploremap after enabling developer commands. Use resetmap if you want to reset map exploration.
How do I fly in Valheim?
Depending on your current version and platform, use fly or the supported debug-mode flying controls.
Can I use Valheim console commands in multiplayer?
Basic console and administrative commands may work with appropriate permissions, but developer cheats are restricted by multiplayer and server permissions.
Do Valheim cheats disable achievements?
Valheim 1.0 introduced achievement protections around developer commands. Many cheat-style commands can affect achievement eligibility.
How do I see every command available in my version of Valheim?
Open the console and type help. This is especially useful after an update because it shows commands recognised by your installed game version.
Final Thoughts
Valheim console commands are useful for testing, creative building, recovering from unusual situations, managing servers and experimenting with the game’s mechanics. The commands most players will use frequently are devcommands, god, spawn, nocost, exploremap, goto, freefly and save.
Because Valheim continues to receive updates, command behaviour and internal spawn IDs can change. When in doubt, use the in-game help command and keep a backup of important worlds before experimenting with developer functions.
For more game console commands and cheat references, browse ARK Console Commands.
Leave a Reply