Valheim Console Commands and Cheats 2026: Full List and How to Enable

Published on

How to enable Valheim console commands and use cheat codes: spawn items, devcommands, fly, god mode, food and creature spawns, and server admin commands.

Valheim has a built-in console with cheat commands for spawning items, enabling god mode, and testing. Here is how to enable it and the most useful commands.

How to Enable the Console

  1. Open the console with F5 in-game
  2. Type devcommands and press Enter (older versions used imacheater)
  3. Cheats are now active for your session

Note: On dedicated servers, some commands require admin status (your Steam ID in the adminlist.txt file).

Essential Cheat Commands

CommandEffect
devcommandsEnable/disable cheats
godToggle god mode (no damage)
flyToggle flying
ghostEnemies ignore you
nocostFree crafting/building, no resource cost
tod -1Reset time of day to default
tod 0.5Set time to noon
raiseskill <skill> <amount>Increase a skill level
resetcharacterReset skills and inventory

Spawning Items and Creatures

spawn <item> <amount> <level>

Examples:

  • spawn Wood 50, 50 wood
  • spawn Coins 9999, gold coins
  • spawn Boar 3 2, three level-2 boars

For food and feasts, use the item name (e.g. spawn QueensJam 10).

Useful Utility Commands

CommandEffect
posShow your coordinates
goto x,zTeleport to coordinates
locationFind structures
removedropsClear dropped items
killallKill nearby enemies
tameTame nearby creatures
exploremapReveal the entire map
resetmapHide the map

Server Admin Commands

On a dedicated server, admins can use:

  • kick <name>, kick a player
  • ban <name>, ban a player
  • save, force a world save
  • banned, list banned players

Add Steam IDs to adminlist.txt in your server's config folder to grant admin rights.

Are Cheats Safe to Use?

Cheats only affect your own world or a server where you are admin. They do not affect other players' separate worlds. Using devcommands does not ban you, Valheim has no anti-cheat for private servers.

FAQ

How do I open the Valheim console? Press F5, then type devcommands to enable cheats.

What is the spawn command in Valheim? spawn <item> <amount> <level> creates items or creatures.

Can I use cheats on a dedicated server? Yes, if your Steam ID is in the server's adminlist.txt.

Related: Valheim dedicated server, Valheim progression guide, Valheim best seeds

Launch Your VPS Today

Get started with professional VPS hosting powered by enterprise hardware. Instant deployment and 12/7 support included.