Valheim Admin Commands

This guide covers all essential admin commands for managing your Valheim server, including player management, world control, and debugging tools.

Enabling Admin Mode

Before using admin commands, you must enable admin mode on your server.
  1. Open the console by pressing F5 in-game
  2. Type imacheater and press Enter to enable admin/debug mode
  3. You’ll see “Cheats: True” appear on screen confirming admin mode is active
Note: Admin privileges are automatically granted to the server host. For other players, you’ll need to add them to the admin list in your server files.

Player Management Commands

Basic Player Commands

CommandSyntaxDescription
kickkick [player_name]Removes a player from the server
banban [player_name]Permanently bans a player from the server
unbanunban [player_name]Removes a player from the ban list
bannedbannedLists all currently banned players

Player Information

CommandSyntaxDescription
playersplayersShows all connected players and their IDs
pingpingDisplays your current ping to the server

World Control Commands

Time and Weather

CommandSyntaxDescription
skiptimeskiptime [seconds]Advances time by specified seconds
sleepsleepSkips to next morning
todtod [0-1]Sets time of day (0=midnight, 0.5=noon, 1=midnight)
envenv [weather_type]Changes weather (Clear, Twilight_Clear, Misty, Darklands_dark, Heath clear, DeepForest Mist, GDKing, Rain, LightRain, ThunderStorm, Eikthyr, GoblinKing, nofogts, SwampRain, Bonemass, Snow, Twilight_Snow, Twilight_Clear, Twilight_Rain, Ashrain, Crypt, SunkenCrypt)

World Management

CommandSyntaxDescription
savesaveForces a world save
resetmapresetmapResets map exploration for all players
exploremapexploremapReveals the entire map
resetcharacterresetcharacterResets your character to level 1

Item and Resource Commands

Spawning Items

CommandSyntaxDescription
spawnspawn [item_name] [quantity] [level]Spawns items at your location
removedropsremovedropsRemoves all item drops in the area

Common Item Names

Resources:
  • Wood, Stone, FineWood, CoreWood, IronScrap, Silver, BlackMetal
  • LeatherScraps, DeerHide, TrollHide, WolfPelt, LinenThread
Food:
  • Honey, Mushroom, Carrot, Turnip, Barley, Flax
  • CookedMeat, Sausages, FishCooked, Bread
Tools and Weapons:
  • Hammer, Axe, Pickaxe, Hoe, Cultivator
  • SwordIron, SpearFlint, BowHuntsman, ShieldWood

Creature and NPC Commands

Spawning Creatures

CommandSyntaxDescription
spawnspawn [creature_name] [quantity] [level]Spawns creatures at your location
killallkillallKills all nearby enemies
tametameTames all nearby tameable creatures

Common Creature Names

Enemies:
  • Greyling, Greydwarf, GreydwarfBrute, GreydwarfShaman
  • Skeleton, Draugr, DraugrElite, Blob, Oozer
  • Troll, Surtling, Wraith, StoneGolem
Tameable Animals:
  • Boar, Wolf, Lox

Building and Creative Commands

Construction Tools

CommandSyntaxDescription
debugmodedebugmodeEnables creative building mode (no resource costs)
godgodToggles god mode (invincibility)
ghostghostToggles ghost mode (no collision, fly through objects)
flyflyEnables flying mode
freeflyfreeflyEnables free camera mode

Building Management

CommandSyntaxDescription
removebuildsremovebuildsRemoves all player-built structures in the area
repairrepairRepairs all structures within range

Server Management Commands

Performance and Debugging

CommandSyntaxDescription
infoinfoShows system information and performance stats
lodbiaslodbias [value]Adjusts level of detail bias (0.5-5.0)
dpsdebugdpsdebugToggles damage per second debug display
resetspawnresetspawnResets your spawn point to default

Network Commands

CommandSyntaxDescription
connectconnect [ip:port]Connects to a specific server
disconnectdisconnectDisconnects from current server

Common Use Cases and Examples

Setting Up a New Player

# Give new player basic starting gear
spawn Hammer 1
spawn Axe 1 
spawn Pickaxe 1
spawn Wood 50
spawn Stone 50

Hosting Events

# Set dramatic weather for boss fights
env ThunderStorm
# Spawn boss creature
spawn Eikthyr 1 3
# Set time to evening for atmosphere
tod 0.8

Server Maintenance

# Force save before maintenance
save
# Remove dropped items to improve performance
removedrops
# Check connected players
players

Troubleshooting Player Issues

# Reset stuck player's spawn point
resetspawn
# Teleport player out of problematic area
goto [coordinates]
# Remove problematic structures
removebuilds

Troubleshooting Common Issues

Need help with server management? Join our Discord community or contact support for assistance.