🎉 Use code SP25 for 25% off your first month!

Valheim Admin Commands and Server Management

Complete list of Valheim admin and console commands for managing your dedicated server, players, and world.

Noah
5 min read
Mar 15, 2024

Valheim Admin Commands and Server Management

This guide covers all the essential admin commands for managing your Valheim dedicated server, including player management, server control, and in-game commands.

Setting Up Admin Access

Before using admin commands, you need to add yourself as an admin:

  1. Find your Steam64 ID — use steamid.io to look it up
  2. Go to your server's File Manager in the control panel
  3. Navigate to /.config/unity3d/IronGate/Valheim/
  4. Open or create the file adminlist.txt
  5. Add your Steam64 ID (one per line)
  6. Save the file and restart the server

Using the In-Game Console

Once you're set as admin:

  1. Join your server
  2. Press F5 to open the console
  3. Type devcommands to enable admin commands
  4. You can now use all commands listed below

Player Management Commands

CommandDescription
kick [name/ip]Kick a player from the server
ban [name/ip]Ban a player from the server
unban [name/ip]Remove a player's ban
bannedList all banned players
pingShow your current latency
lodbias [0-5]Adjust the draw distance
infoShow system information

Server Console Commands

These commands can be used directly in the control panel console:

CommandDescription
saveForce a world save
helpList all available commands

In-Game Admin Commands

With devcommands enabled, you have access to:

World Commands

CommandDescription
posShow your current coordinates
goto [x,y,z]Teleport to coordinates
exploremapReveal the entire map
resetmapRe-hide the entire map
tod [0-1]Set time of day (0/1 = midnight, 0.5 = noon)
skiptime [seconds]Skip forward in time
sleepSkip to next morning
wind [angle] [intensity]Set wind direction and strength
resetwindReset wind to normal

Player Commands

CommandDescription
godToggle god mode (invincibility)
ghostToggle ghost mode (enemies ignore you)
flyToggle fly mode
nocostToggle free building (no resource cost)
tameTame all nearby creatures
healFully heal your character
pukeReset hunger and food effects
raiseskill [skill] [amount]Raise a skill level
resetskill [skill]Reset a specific skill to 0

Spawn Commands

CommandDescription
spawn [item] [quantity] [level]Spawn an item or creature
removedropsRemove all item drops in the area

Managing Permitted and Banned Players

Adminlist, Bannedlist, and Permittedlist

These files are located in /.config/unity3d/IronGate/Valheim/:

  • adminlist.txt — Steam64 IDs of players with admin privileges
  • bannedlist.txt — Steam64 IDs of banned players
  • permittedlist.txt — Steam64 IDs for whitelist mode

Each file takes one Steam64 ID per line.

Enabling Whitelist Mode

To restrict your server to only permitted players:

  1. Add player Steam64 IDs to permittedlist.txt
  2. Only listed players will be able to connect

Tips and Best Practices

  • Don't abuse devcommands — Using spawn/god mode can reduce the fun for other players
  • Back up before experimenting — Some commands can permanently change your world
  • Use admin permissions wisely — Only grant admin to trusted players
  • Keep banned list updated — Regularly review and clean up your ban list

Need help with server management? Contact our 24/7 support team.