Home/ Guides/ Valheim Commands
🛡️ Valheim · Commands

Valheim Console Commands

Every Valheim console command worth knowing, god mode, item and creature spawning, weather and time, teleport and more, with how to switch the console on (it needs a launch option first). Search the list, hit copy, paste in-game.

Verified vs. the Valheim wiki + Iron Gate's official guide · June 2026
Open the console
Add -console as a launch option, press F5 in-game, then type devcommands to turn on cheats.
Full command list ↓, 50 commands, searchable, one-tap copy.
🔛

How to Open the Console in Valheim

1

Enable it: add the launch option -console to Valheim (Steam → right-click Valheim → Properties → General → Launch Options → type -console).

2

Open it in-game: press F5 in a loaded world to bring up the console.

3

Turn on cheats: type devcommands and press Enter (this replaced the old imacheater command). Type it again to turn cheats back off.

Cheat/dev commands work in single-player and self-hosted worlds only, not on dedicated servers (without a mod). They're reported to disable achievements for that save, so use a throwaway world if you care about them. The basic commands below (help, info, ping) work without devcommands.
⌨️

Valheim Command List

Type to filter, hit Copy, paste in-game. 50 commands. Placeholders in [brackets] are values you fill in.

CommandWhat it doesCategory
godToggle invincibility, take no damage.Cheats / God
ghostToggle ghost mode, enemies don't detect you.Cheats / God
nocostToggle no build cost + unlock all crafting recipes.Cheats / God
debugmodeToggle creative/debug mode (then Z = fly, B = free placing/instant repair, K = kill what's under the cursor).Cheats / God
flyToggle flight.Cheats / God
freeflyToggle the detached free-camera (photo mode).Cheats / God
spawn [name] [amount] [level]Spawn an item or creature by ID (amount and star level optional).Spawn / Items
itemset [name]Spawn a premade gear set: Meadows, BlackForest, Swamps, Mountains, Plains, PlainsBoss, EndGame.Spawn / Items
removedropsRemove dropped items in the nearby area.Spawn / Items
healFully restore health, stamina and eitr.Player
pukeClear all eaten food (reset the food buffs/hunger).Player
raiseskill [skill] [amount]Raise a skill by an amount (use 'All' for every skill).Player
resetskill [skill]Reset a skill to 0 (use 'All' for all skills).Player
addstatus [name]Apply a status effect (e.g. Burning, Cold, Rested).Player
setpower [name]Set your active Forsaken power and reset its cooldown.Player
model [0/1]Switch body type (0 = masculine, 1 = feminine).Player
beard [name]Change beard (omit the name to remove it).Player
hair [name]Change hairstyle (omit the name to remove it).Player
dieKill your own character.Player
resetspawnReset your bed/spawn point to default.Player
goto [x] [z]Teleport to map coordinates (this is the teleport command, there is no 'tp').Teleport
posPrint your current position coordinates.Teleport
recall [name]Teleport a named player to you (omit the name to pull everyone).Teleport
find [text]Ping/teleport to the nearest object matching the text.Teleport
tod [0-1]Set time of day (0 or 1 = midnight, 0.5 = noon; -1 reverts to normal).Time / Weather / Events
skiptime [seconds]Skip forward in time (default 240).Time / Weather / Events
sleepAdvance one full in-game day.Time / Weather / Events
timescale [multiplier]Set game speed (max ~5; 0 = pause).Time / Weather / Events
env [name]Force a weather/environment (e.g. Rain, Thunderstorm, Clear, Misty).Time / Weather / Events
resetenvReset forced weather back to normal.Time / Weather / Events
wind [angle] [intensity]Set wind direction (0-360) and strength (0-1).Time / Weather / Events
event [name]Start a named event (e.g. army_eikthyr, foresttrolls, blobs).Time / Weather / Events
randomeventTrigger a random event near you.Time / Weather / Events
stopeventStop the active event.Time / Weather / Events
tameTame all tameable creatures nearby.Creatures
killallKill all nearby creatures (enemies AND tames).Creatures
killenemiesKill only nearby hostile creatures.Creatures
aggravateAggravate neutral creatures within ~20m.Creatures
players [number]Set difficulty scaling as if N players are online (0 = reset).Creatures
exploremapReveal the entire map.Map / World
resetmapRe-cover the map with fog.Map / World
location [id]Spawn a location instance (a dungeon/structure).Map / World
setkey [name]Set a global progression key.Map / World
listkeysList all active global keys.Map / World
resetkeys [name]Remove all global keys (or a named one).Map / World
setworldpreset [name]Apply a difficulty preset (casual, hard, hardcore, immersive, hammer).Map / World
helpList available console commands.Basics (no devcommands needed)
infoShow system/world information.Basics (no devcommands needed)
pingShow your latency to the server.Basics (no devcommands needed)
fov [number]Set field of view (default 65).Basics (no devcommands needed)

Valheim Commands FAQ

How do you open the console in Valheim?
Add -console to Valheim's launch options, then press F5 in a loaded world. To use cheats, type devcommands first.
What replaced imacheater in Valheim?
devcommands, it replaced imacheater in patch 0.148.6. Guides still listing imacheater are outdated.
How do you spawn items in Valheim?
Use spawn [name] [amount] [level] after enabling devcommands, e.g. spawn Wood 50. There's no separate 'give' command in the base game.
How do you teleport in Valheim?
Use goto [x] [z] with map coordinates. There is no tp or setpos command in base Valheim.

More from GamesOMG

Console open? Here's the rest of the toolkit.