In this post, you will find all the Valheim cheats you can use on single-player mode and all the server admin commands you can run as a server administrator in multiplayer.
Valheim is an upcoming survival and sandbox video game by the Swedish developer Iron Gate Studio. Coffee Stain Studios published the game, and it is available on early access since February 2nd, 2021, for Windows and Linux on Steam.
How to Use Cheats and Console Commands in Valheim
To use cheats in Valheim, you must use a console command that enables them.
How to Enable Valheim Cheats
- To get started with cheats in Valheim, you must bring up the game's developer using F5 console and use console commands.
- Next, enter “imacheater” to enable Valheim cheats. As with many competitive games, the cheats will only work in single-player mode. Note: To turn cheats off, just type “imacheater” once more in the console command box.
How to Spawn Items, NPC & Enemies in Valheim
To spawn items through the console command cheat, you must first enable cheats by typing “imacheater” as we explained in the prior section. Once you have successfully enabled cheats, you will need to use the following code to spawn any item that you specify:
- spawn [item] [quantity] [level]
For instance, you can spawn 100 Amber using:
- spawn Amber 100
Note: Using item spawn commands, especially in large quantities, may introduce bugs and glitches to your world. Use the spawn command at your own risk and with measure.
Of course, to be able to spawn any item, character, or mob, you need to know each one's code. In the next section, you will find all the spawnable items & mob codes in Valheim.
All Valheim Item, NPC & Enemy Spawn Codes
Reddit user Demogrim has collected and shared the complete list of spawnable Valheim items, characters, and mobs, which we share with you below:
A special note has to be made about Haldor: If you decide to spawn Haldor the Merchant, he will spawn approximately one foot off the ground and cannot be removed from your game afterward.
Below you will find the rather long list of uncategorized spawn codes:
How to Enter Debug Mode in Valheim
The “debugmode” command will allow you to experience the game like Minecraft's Creative Mode. Valheim's debug mode allows you to enter flying mode, kill all enemies in an area, and even free repairs and unlimited placements of items.
- Z – Pressing Z while in Creative Mode will allow you to enter Flying Mode.
- K – Pressing K while in Creative Mode kills all enemies in the area.
- B – Pressing B while in Creative Mode will allow you to free place items in your world and repair them without a Workbench.
All Valheim Cheats and Console Commands List
Listed below are all the current console commands and cheats you can enable while playing Valheim.
Character Cheats
- god ? Enables God Mode, which makes your character invincible.
- ghost – Enables Ghost Mode, which will make enemies ignore you.
- heal – Fully heals your character.
- puke – Resets your character's hunger and restores default health and stamina.
- hair – Permanently removes your hair.
- beard – Permanently removes your beard.
- model [0/1] – Changes your character's body type [male/female].
- resetcharacter ? Reset Character data.
- raiseskill [skill] [amount] ? Raise skill level by amount points.
- resetskill [skill name] – Resets skill level to 0.
Gameplay Cheats
- imacheater – Enables cheats.
- debugmode – Enables Debug/Creative mode, which allows you to perform the following actions
- Z – Pressing Z while in Creative Mode will allow you to enter Flying Mode.
- K – Pressing K while in Creative Mode kills all enemies in the area.
- B – Pressing B while in Creative Mode will allow you to free place items in your world and repair them without a Workbench.
Teleport Cheats
- location ? Sets new spawn location.
- pos ? Print current player position.
- goto [x,z] ? Teleport to entered coordinates.
World Cheats
- exploremap – Explores the entire map, removing all fog of war.
- resetmap – Resets map exploration, clearing ALL previously explored areas.
- wind [angle 0-360] [intensity 0-1] – Sets wind to specified angle/intensity.
- resetwind – Resets the wind to default.
Valheim cheats for time:
- tod [0-1] – Sets time of day. 0 and 1 are both midnight. 0.5 is noon.
- tod -1 – Resets time of day to default.
- skiptime [seconds] – Skips forward, changing day number and time of day.
- sleep – Skips forward one day.
Valheim cheats for enemies
- killall – Kills all nearby enemies.
- tame – Tames all nearby tameable creatures.
- removedrops – Removes all item drops nearby.
Valheim Event Cheats
- event [name] – Starts the specified event, e.g., “event wolves.”
- stopevent – Stops the current event.
- randomevent – Starts a random event.
Valheim Miscellaneous Cheats
- players [num] – Sets difficulty scaling based on the number of players. 1 player = none. 0 resets.
- ffsmooth [0-1] – Sets smoothing of the free-fly camera.
- setkey [name] – Sets new global key.
- resetkeys [name] – Resets the specified key.
- listkeys – Lists all global keys.
- env [env] – Sets debug environment.
- resetenv – Resets the debug environment.
- info – Prints system info (render threading mode and allocated memory).
- lodbias [0-5] – Sets draw distance. If the number is left blank, it prints the current draw distance.
- freefly ? Freefly Photo Mode.
- ffsmooth ? Freefly smoothness.
- exploremap ? Explore the entire map.
- resetmap ? Reset map exploration.
- players [num] ? Sets difficulty scaling based on the number of players (0 = Reset).
- spawn [item] [quantity] [level] – Spawns the specified item.
- dpsdebug – Toggles the damage-per-second debug overlay on/off.
- debugmode – Enables Creative Mode.
- Z – Pressing Z while in Creative Mode will allow you to enter Flying Mode
- K – Pressing K while in Creative Mode kills all enemies in the area.
- B – Pressing B while in Creative Mode will allow you to repair any items without a Workbench and free placements of any items.
All Valheim Server Admin Commands
Below you will find all the admin commands you can use as a Valheim server admin to set server parameters like the drawing distance, display system info, and ban, unban or kick players.
- help ? List all commands.
- info ? Print system info.
- save ? Force save of world.
- ping ? Show ping.
- kick [name/ip/userID] ? Kick player from server.
- ban [name/ip/userID] ? Ban player from server.
- unban [name/ip/userID] ? Unban player from server.
- banned ? List banned players.
- lodbias [0-5] ? Set draw distance for server.