This guide provides a complete list of all console commands available in Valheim. Commands are organized by category for easy reference.
To use console commands, you must have the console enabled and be an admin on the server. See our guides on How to Enable the Console in Valheim and How to Add an Admin to Your Valheim Server.
Player Management Commands
These commands are available to server admins for managing players.
| Command | Description | Example |
|---|---|---|
kick <player> | Kicks a player from the server by name or Steam ID | kick Viking123 |
ban <player> | Bans a player from the server by name or Steam ID | ban 76561198012345678 |
unban <steamid> | Removes a player from the ban list | unban 76561198012345678 |
banned | Displays a list of all banned players | banned |
ping | Shows your current latency to the server | ping |
info | Displays system information | info |
lodbias <value> | Sets the draw distance (0-5, default 1.5) | lodbias 3 |
Cheat Commands
These commands require cheats to be enabled with devcommands first.
Cheat commands can significantly alter gameplay and may cause unintended issues. Use with caution, especially on multiplayer servers.
| Command | Description | Example |
|---|---|---|
devcommands | Toggles cheat mode on/off (required for commands below) | devcommands |
god | Toggles god mode (invincibility) | god |
ghost | Toggles ghost mode (enemies ignore you) | ghost |
freefly | Toggles free camera flight mode | freefly |
debugmode | Enables creative mode (Z = fly, K = kill nearby, B = no build cost) | debugmode |
pos | Displays your current coordinates | pos |
goto <x> <y> <z> | Teleports to specified coordinates | goto 0 100 0 |
exploremap | Reveals the entire map | exploremap |
resetmap | Hides the entire map (fog of war) | resetmap |
killall | Kills all nearby enemies | killall |
tame | Tames all nearby tameable creatures | tame |
heal | Fully heals your character | heal |
puke | Resets hunger and clears food buffs | puke |
raiseskill <skill> <amount> | Increases a skill by the specified amount | raiseskill run 50 |
resetskill <skill> | Resets a specific skill to 0 | resetskill run |
resetcharacter | Resets all character skills and inventory | resetcharacter |
dpsdebug | Toggles DPS debug overlay | dpsdebug |
players <count> | Sets difficulty scaling for player count (0 = actual count) | players 3 |
Spawn Commands
These commands spawn items and creatures. Requires devcommands to be enabled.
| Command | Description | Example |
|---|---|---|
spawn <prefab> <amount> <level> | Spawns an item or creature | spawn Deer 1 2 |
location <name> | Spawns a location/structure | location Vendor_BlackForest |
removedrops | Removes all item drops in the area | removedrops |
Prefab names are case-sensitive. For a full list of spawn IDs, check the Valheim Wiki.
Character Customization Commands
These commands modify your character's appearance. Requires devcommands to be enabled.
| Command | Description | Example |
|---|---|---|
hair <name> | Changes your hairstyle | hair Hair4 |
beard <name> | Changes your beard style | beard Beard5 |
model <0/1> | Changes character model (0 = male, 1 = female) | model 1 |
World and Event Commands
These commands affect the world state and events. Requires devcommands to be enabled.
| Command | Description | Example |
|---|---|---|
skiptime <seconds> | Fast forwards time | skiptime 240 |
sleep | Skips to the next morning | sleep |
event <name> | Starts a specific event | event army_theelder |
stopevent | Stops the current event | stopevent |
randomevent | Triggers a random event | randomevent |
save | Forces a world save | save |
setkey <key> | Sets a global key (boss progression) | setkey defeated_eikthyr |
resetkeys <key> | Removes a global key | resetkeys defeated_eikthyr |
listkeys | Shows all active global keys | listkeys |
Environment Commands
These commands control weather and environment. Requires devcommands to be enabled.
| Command | Description | Example |
|---|---|---|
env <environment> | Sets weather/environment | env Clear |
resetenv | Resets to default weather | resetenv |
wind <angle> <intensity> | Sets wind direction and strength | wind 90 0.5 |
resetwind | Resets wind to default | resetwind |
tod <value> | Sets time of day (0-1, -1 = default) | tod 0.5 |
Environment Types
Valid values for the env command:
| Environment | Description |
|---|---|
Clear | Clear skies |
Twilight_Clear | Clear twilight |
Misty | Misty weather |
Darklands_dark | Dark ashlands weather |
Heath clear | Clear meadows |
DeepForest Mist | Foggy forest |
GDKing | Elder boss weather |
Rain | Rainy weather |
LightRain | Light rain |
ThunderStorm | Thunderstorm |
Eikthyr | Eikthyr boss weather |
GoblinKing | Yagluth boss weather |
nofogts | No fog thunderstorm |
SwampRain | Swamp rain |
Bonemass | Bonemass boss weather |
Snow | Snow weather |
Twilight_Snow | Snowy twilight |
Twilight_SnowStorm | Snow storm twilight |
SnowStorm | Heavy snow storm |
Moder | Moder boss weather |
Ashrain | Ashlands rain |
Crypt | Dungeon atmosphere |
SunkenCrypt | Sunken crypt atmosphere |
Global Keys Reference
Global keys track boss progression and world state. Use with setkey, resetkeys, and listkeys.
| Key | Description |
|---|---|
defeated_eikthyr | Eikthyr has been defeated |
defeated_gdking | The Elder has been defeated |
defeated_bonemass | Bonemass has been defeated |
defeated_dragon | Moder has been defeated |
defeated_goblinking | Yagluth has been defeated |
defeated_queen | The Queen has been defeated |
KilledTroll | A troll has been killed |
killed_surtling | A surtling has been killed |
Skill Names Reference
Use these skill names with raiseskill and resetskill commands.
| Skill | Description |
|---|---|
swords | Sword combat |
knives | Knife combat |
clubs | Club combat |
polearms | Polearm combat |
spears | Spear combat |
blocking | Shield blocking |
axes | Axe combat and woodcutting |
bows | Bow combat |
unarmed | Unarmed combat |
pickaxes | Mining |
woodcutting | Chopping trees |
crossbows | Crossbow combat |
jump | Jumping |
sneak | Sneaking |
run | Running stamina |
swim | Swimming stamina |
fishing | Fishing |
ride | Riding Lox |
This reference covers all major Valheim console commands. For additional commands or updates, check the official Valheim patch notes or community wiki.

