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:
- Find your Steam64 ID - use steamid.io to look it up
- Go to your server's File Manager in the control panel
- Navigate to
/.config/unity3d/IronGate/Valheim/ - Open or create the file
adminlist.txt - Add your Steam64 ID (one per line)
- Save the file and restart the server
Using the In-Game Console
Once you're set as admin:
- Join your server
- Press F5 to open the console
- Type
devcommandsto enable admin commands - You can now use all commands listed below
Player Management Commands
| Command | Description |
|---|---|
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 |
banned |
List all banned players |
ping |
Show your current latency |
lodbias [0-5] |
Adjust the draw distance |
info |
Show system information |
Server Console Commands
These commands can be used directly in the control panel console:
| Command | Description |
|---|---|
save |
Force a world save |
help |
List all available commands |
In-Game Admin Commands
With devcommands enabled, you have access to:
World Commands
| Command | Description |
|---|---|
pos |
Show your current coordinates |
goto [x,y,z] |
Teleport to coordinates |
exploremap |
Reveal the entire map |
resetmap |
Re-hide the entire map |
tod [0-1] |
Set time of day (0/1 = midnight, 0.5 = noon) |
skiptime [seconds] |
Skip forward in time |
sleep |
Skip to next morning |
wind [angle] [intensity] |
Set wind direction and strength |
resetwind |
Reset wind to normal |
Player Commands
| Command | Description |
|---|---|
god |
Toggle god mode (invincibility) |
ghost |
Toggle ghost mode (enemies ignore you) |
fly |
Toggle fly mode |
nocost |
Toggle free building (no resource cost) |
tame |
Tame all nearby creatures |
heal |
Fully heal your character |
puke |
Reset hunger and food effects |
raiseskill [skill] [amount] |
Raise a skill level |
resetskill [skill] |
Reset a specific skill to 0 |
Spawn Commands
| Command | Description |
|---|---|
spawn [item] [quantity] [level] |
Spawn an item or creature |
removedrops |
Remove 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:
- Add player Steam64 IDs to
permittedlist.txt - 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.