Valheim Admin & Console Commands
Complete reference for all Valheim console commands, admin management, devcommands, and spawn IDs for dedicated servers.
Wiki team
Valheim Console Commands
The Valheim console gives server admins powerful tools for managing players, spawning items, and debugging issues. Press F5 in-game to open the console.
Setting Up Admins
Before using admin commands, you must add yourself to the admin list:
- Open the File Manager in your HostedGG dashboard
- Open
adminlist.txtin the root directory - Add your Steam64 ID (one per line)
- Save the file and restart the server
Find your Steam64 ID at steamid.io.
Note: After adding yourself to the admin list, you may need to rejoin the server for the changes to take effect.
Enabling Devcommands
After being added as an admin, type this in the console:
devcommandsYou'll see a message confirming devcommands are enabled. This unlocks the full set of admin tools.
Player Management Commands
| Command | Description |
|---|---|
kick [name/steamID] | Kick a player from the server |
ban [name/steamID] | Ban a player permanently |
unban [steamID] | Remove a ban |
banned | List all banned players |
ping | Show your ping to the server |
info | Display server info |
lodbias [0-5] | Set level of detail rendering |
World Management Commands
| Command | Description |
|---|---|
save | Force a world save |
resetcharacter | Reset your character (⚠️ irreversible) |
removedrops | Remove all dropped items on the ground |
sleep | Skip to next morning |
skiptime [seconds] | Advance time by specified seconds |
Teleport Commands
| Command | Description |
|---|---|
pos | Show your current coordinates |
goto [x] [y] [z] | Teleport to coordinates |
exploremap | Reveal the entire map |
resetmap | Hide the entire map |
location | Show your current biome and position |
Spawn Commands
Spawn items using:
spawn [prefabName] [amount] [level]Common Item Prefab Names
Weapons
| Prefab | Item |
|---|---|
SwordBlackmetal | Blackmetal Sword |
AtgeirBlackmetal | Blackmetal Atgeir |
AxeBlackMetal | Blackmetal Axe |
KnifeBlackMetal | Blackmetal Knife |
MaceNeedle | Porcupine Mace |
BowDraugrFang | Draugr Fang Bow |
SwordMistwalker | Mistwalker Sword |
AxeJotunBane | Jotun Bane Axe |
Armor
| Prefab | Item |
|---|---|
ArmorPaddedHelmet | Padded Helmet |
ArmorPaddedCuirass | Padded Cuirass |
ArmorPaddedGreaves | Padded Greaves |
CapeFeather | Feather Cape |
CapeLinen | Linen Cape |
HelmetCarapace | Carapace Helmet |
Resources
| Prefab | Item |
|---|---|
Iron | Iron |
Silver | Silver |
BlackMetal | Black Metal |
DragonTear | Dragon Tear |
Coins | Gold Coins |
Thunderstone | Thunderstone |
SurtlingCore | Surtling Core |
Food
| Prefab | Item |
|---|---|
SerpentStew | Serpent Stew |
LoxPie | Lox Meat Pie |
BloodPudding | Blood Pudding |
FishWraps | Fish Wraps |
God Mode & Debug Commands
| Command | Description |
|---|---|
god | Toggle invincibility |
ghost | Enemies ignore you |
debugmode | Toggle debug fly mode (Z to fly, B to no-cost build) |
killall | Kill all enemies in range |
tame | Tame all nearby tameable creatures |
heal | Fully heal yourself |
puke | Remove all food effects |
raiseskill [skill] [amount] | Increase a skill level |
resetskill [skill] | Reset a skill to 0 |
Skill Names
For raiseskill and resetskill commands:
swords, knives, clubs, polearms, spears, blocking, axes, bows, crossbows, unarmed, pickaxes, woodcutting, jump, sneak, run, swim, fishing, ride
Event Commands
Force boss events or stop active raids:
| Command | Description |
|---|---|
randomevent | Trigger a random event |
stopevent | Stop the current event |
event [name] | Trigger a specific event |
Event Names
| Event | Description |
|---|---|
army_eikthyr | Creatures from the forest attack |
army_theelder | The ground is shaking (Trolls) |
army_bonemass | A foul smell from the swamp |
army_moder | A cold wind blows from the mountains |
army_goblin | The horde is attacking |
Environment Commands
| Command | Description |
|---|---|
env [weather] | Set weather (Clear, Misty, Thunderstorm, Snow, etc.) |
resetenv | Reset to default weather |
wind [angle] [intensity] | Set wind direction and strength |
resetwind | Reset wind to default |
tod [0-1] | Set time of day (0 = midnight, 0.5 = noon) |
Best Practices for Admins
- Don't use devcommands in normal play — It disables achievements and can corrupt progression
- Save before experimenting — Run
savebefore testing commands - Use kick before ban — Give players a warning first
- Keep backups — Before using
spawnorremovedrops, back up your world - Log admin actions — Keep notes of bans and kicks for your community
Next Steps
- Configure world settings and difficulty
- Server troubleshooting guide
- Set up server administration with mods
Related Blog Posts
Related Articles
Help verify this page
Tested this recently? Send a quick accuracy signal for editors.
Help improve HostedGG
Know this game? Join our community of contributors.
Discussion
Sign in to join the discussion.
Loading discussion...