Skip to content

Valheim Admin & Console Commands

Complete reference for all Valheim console commands, admin management, devcommands, and spawn IDs for dedicated servers.

HostedGG Team
Author · Updated
Verifiedfor Current version
Checked by HostedGG Team on Jun 19, 2026
Updated 4 months agoHostedGG 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:

  1. Open the File Manager in your HostedGG dashboard
  2. Open adminlist.txt in the root directory
  3. Add your Steam64 ID (one per line)
  4. Save the file and restart the server

Find your Steam64 ID at steamid.io.

Intel

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:

sh
devcommands

You'll see a message confirming devcommands are enabled. This unlocks the full set of admin tools.

Player Management Commands

CommandDescription
kick [name/steamID]Kick a player from the server
ban [name/steamID]Ban a player permanently
unban [steamID]Remove a ban
bannedList all banned players
pingShow your ping to the server
infoDisplay server info
lodbias [0-5]Set level of detail rendering

World Management Commands

CommandDescription
saveForce a world save
resetcharacterReset your character (⚠️ irreversible)
removedropsRemove all dropped items on the ground
sleepSkip to next morning
skiptime [seconds]Advance time by specified seconds

Teleport Commands

CommandDescription
posShow your current coordinates
goto [x] [y] [z]Teleport to coordinates
exploremapReveal the entire map
resetmapHide the entire map
locationShow your current biome and position

Spawn Commands

Spawn items using:

sh
spawn [prefabName] [amount] [level]

Common Item Prefab Names

Weapons

PrefabItem
SwordBlackmetalBlackmetal Sword
AtgeirBlackmetalBlackmetal Atgeir
AxeBlackMetalBlackmetal Axe
KnifeBlackMetalBlackmetal Knife
MaceNeedlePorcupine Mace
BowDraugrFangDraugr Fang Bow
SwordMistwalkerMistwalker Sword
AxeJotunBaneJotun Bane Axe

Armor

PrefabItem
ArmorPaddedHelmetPadded Helmet
ArmorPaddedCuirassPadded Cuirass
ArmorPaddedGreavesPadded Greaves
CapeFeatherFeather Cape
CapeLinenLinen Cape
HelmetCarapaceCarapace Helmet

Resources

PrefabItem
IronIron
SilverSilver
BlackMetalBlack Metal
DragonTearDragon Tear
CoinsGold Coins
ThunderstoneThunderstone
SurtlingCoreSurtling Core

Food

PrefabItem
SerpentStewSerpent Stew
LoxPieLox Meat Pie
BloodPuddingBlood Pudding
FishWrapsFish Wraps

God Mode & Debug Commands

CommandDescription
godToggle invincibility
ghostEnemies ignore you
debugmodeToggle debug fly mode (Z to fly, B to no-cost build)
killallKill all enemies in range
tameTame all nearby tameable creatures
healFully heal yourself
pukeRemove 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:

CommandDescription
randomeventTrigger a random event
stopeventStop the current event
event [name]Trigger a specific event

Event Names

EventDescription
army_eikthyrCreatures from the forest attack
army_theelderThe ground is shaking (Trolls)
army_bonemassA foul smell from the swamp
army_moderA cold wind blows from the mountains
army_goblinThe horde is attacking

Environment Commands

CommandDescription
env [weather]Set weather (Clear, Misty, Thunderstorm, Snow, etc.)
resetenvReset to default weather
wind [angle] [intensity]Set wind direction and strength
resetwindReset wind to default
tod [0-1]Set time of day (0 = midnight, 0.5 = noon)

Best Practices for Admins

  1. Don't use devcommands in normal play — It disables achievements and can corrupt progression
  2. Save before experimenting — Run save before testing commands
  3. Use kick before ban — Give players a warning first
  4. Keep backups — Before using spawn or removedrops, back up your world
  5. Log admin actions — Keep notes of bans and kicks for your community

Next Steps

Help verify this page

Tested this recently? Send a quick accuracy signal for editors.

Sign in to report accuracy

Help improve HostedGG

Know this game? Join our community of contributors.

Discussion

Sign in to join the discussion.

Loading discussion...