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
- In Steam, right-click Valheim → Properties → General, and add
-consoleto Launch Options. - Launch the game and press F5 (or Fn + F5) to open the console.
- 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)
| Command | Description | Syntax |
| help | Lists all available console commands. | help |
| kick | Kicks a player from the server. | kick [name/IP/userID] |
| ban | Bans a player from the server. | ban [name/IP/userID] |
| unban | Lifts a ban. | unban [name/IP/userID] |
| banned | Prints the list of banned players. | banned |
| ping | Shows your ping to the server. | ping |
| info | Prints system / performance info. | info |
| lodbias | Adjusts draw distance (0.1–5). | lodbias [value] |
| save | Forces an immediate world save. | save |
| devcommands | Toggles cheat commands on or off. | devcommands |
Cheat commands (require devcommands first)
| Command | Description | Syntax |
| god | Take no damage (you still get hungry). | god |
| ghost | Enemies no longer detect you. | ghost |
| fly | Toggle flight. | fly |
| freefly | Detached free camera (for screenshots). | freefly |
| debugmode | Creative mode: free building, no-stamina flight, instant placement. | debugmode |
| spawn | Spawns an item or creature near you. | spawn [prefab] [amount] [level] |
| pos | Prints your current coordinates. | pos |
| goto | Teleports you to coordinates. | goto [x] [z] |
| location | Spawns a location/structure at your position (advanced). | location [name] |
| exploremap | Reveals the entire map. | exploremap |
| resetmap | Re-hides the map (fog of war). | resetmap |
| raiseskill | Raises a skill by an amount. | raiseskill [skill] [amount] |
| resetskill | Resets a skill to zero. | resetskill [skill] |
| tame | Tames nearby tameable creatures. | tame |
| killall | Kills nearby enemies and creatures. | killall |
| removedrops | Removes all dropped items in the area. | removedrops |
| puke | Clears all eaten food so you can re-eat. | puke |
| env | Forces a weather/environment (e.g. env Thunderstorm). | env [name] |
| resetenv | Clears a forced environment. | resetenv |
| skiptime | Fast-forwards time by N seconds. | skiptime [seconds] |
| sleep | Fast-forwards roughly one day. | sleep |
| tod | Sets time of day (0=midnight, 0.5=noon; -1 resets). | tod [0-1] |
| players | Scales difficulty as if N players are online (1 resets). | players [number] |
| dpsdebug | Toggles 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— usespawn [item] [amount]. - There is no
setweather— useenv [name]andresetenv. - There is no
sethealth/setstamina/setinventory— usegodfor survivability andspawnfor 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.