Menu
 


Valheim Console Commands

Last verified June 2026, against the current Valheim build.

Valheim has two layers of console commands: admin/server commands that always work in the console, and cheat commands that only work after you enable them with devcommands. Below is the full, verified list, how to enable each, and how the console works on a dedicated server.

How to enable and open the console

  1. In Steam, right-click Valheim → PropertiesGeneral, and add -console to Launch Options.
  2. Launch the game and press F5 (or Fn + F5) to open the console.
  3. Type a command and press Enter.

How to turn on cheats (devcommands)

The cheat commands below do nothing until you enable them. With the console open, type devcommands and press Enter; type it again to turn cheats off. (The old imacheater command is deprecated — devcommands replaces it.) Using cheats disables Steam achievements for that session.

Enabling the console on a dedicated server

Plain devcommands are intended for local/single-player worlds. On a dedicated server you cannot type them into the host the same way — server owners enable cheat commands through a BepInEx mod such as Server Devcommands, which exposes the same commands to admins. Player moderation (kick/ban/whitelist) below works in the regular console.

Admin & server commands (no devcommands needed)

CommandDescriptionSyntax
helpLists all available console commands.help
kickKicks a player from the server.kick [name/IP/userID]
banBans a player from the server.ban [name/IP/userID]
unbanLifts a ban.unban [name/IP/userID]
bannedPrints the list of banned players.banned
pingShows your ping to the server.ping
infoPrints system / performance info.info
lodbiasAdjusts draw distance (0.1–5).lodbias [value]
saveForces an immediate world save.save
devcommandsToggles cheat commands on or off.devcommands

Cheat commands (require devcommands first)

CommandDescriptionSyntax
godTake no damage (you still get hungry).god
ghostEnemies no longer detect you.ghost
flyToggle flight.fly
freeflyDetached free camera (for screenshots).freefly
debugmodeCreative mode: free building, no-stamina flight, instant placement.debugmode
spawnSpawns an item or creature near you.spawn [prefab] [amount] [level]
posPrints your current coordinates.pos
gotoTeleports you to coordinates.goto [x] [z]
locationSpawns a location/structure at your position (advanced).location [name]
exploremapReveals the entire map.exploremap
resetmapRe-hides the map (fog of war).resetmap
raiseskillRaises a skill by an amount.raiseskill [skill] [amount]
resetskillResets a skill to zero.resetskill [skill]
tameTames nearby tameable creatures.tame
killallKills nearby enemies and creatures.killall
removedropsRemoves all dropped items in the area.removedrops
pukeClears all eaten food so you can re-eat.puke
envForces a weather/environment (e.g. env Thunderstorm).env [name]
resetenvClears a forced environment.resetenv
skiptimeFast-forwards time by N seconds.skiptime [seconds]
sleepFast-forwards roughly one day.sleep
todSets time of day (0=midnight, 0.5=noon; -1 resets).tod [0-1]
playersScales difficulty as if N players are online (1 resets).players [number]
dpsdebugToggles damage-per-second debug logging.dpsdebug

Using the spawn command

Syntax: spawn [prefab] [amount] [level]. A few examples:

  • spawn Wood 100 — 100 wood at your feet.
  • spawn Troll 1 2 — one 1-star (level 2) Troll.
  • spawn Flametal 50 — 50 Ashlands ore (1.0+).

Item and creature prefab names come from the in-game item IDs; spawning hundreds of items at once can lag a busy server, so use it sparingly.

World modifiers

World rules (combat difficulty, death penalty, resource rates, raids, portals) are adjusted from Valheim’s built-in World Modifiers screen (added in the Hildir’s Request update) when you start or load a world — you do not need a mod for them. This is the supported way to tune difficulty rather than relying on unofficial command lists.

Common mistakes (commands that do NOT exist)

A lot of lists circulate with commands Valheim has never had. To save you the trouble:

  • There is no additem / removeitem — use spawn [item] [amount].
  • There is no setweather — use env [name] and resetenv.
  • There is no sethealth / setstamina / setinventory — use god for survivability and spawn for gear.

Looking for managed Valheim server hosting? Supercraft runs Valheim dedicated servers with daily backups, instant setup, and 5 region options — experiment with devcommands without risking your world. Plans from $5.99/mo.

Top