Valheim console commands
Last checked:
Valheim has two kinds of console commands. Admin commands (kick, ban, save) work on a dedicated server for players on its admin list. Dev commands (god mode, spawning items, flying) are cheats: they work in single-player and in worlds you host from the game menu, not on a dedicated server. This page covers both, plus how to make yourself an admin.
How to open the console
- In Steam, right-click Valheim → Properties → General → Launch options.
- Type
-consoleand close the window. - Start the game and press F5 in a world to open the console. Type
helpto see what your game accepts there.
Admin commands on a dedicated server
Your SteamID has to be on the server's admin list (see the next section). Open the console with F5 while you're connected.
| Command | What it does |
|---|---|
kick [name or ID] | Kicks a player off the server |
ban [name or ID] | Bans a player. Bans are saved in bannedlist.txt |
unban [ID] | Lifts a ban |
banned | Lists banned players |
save | Saves the world now |
Tip: run save before you restart or stop the server.
How to make yourself admin
- Find your SteamID64. It's the 17-digit number that starts with
7656119. Steam shows it under Account details, and it's also in your profile URL if you never set a custom one. - Open
adminlist.txton the server, in the same folder as your world files. On a Packyard server that's.config/unity3d/IronGate/Valheimin the panel's file manager. Put each ID on its own line. - Restart the server so the change is sure to take effect.
To make the server invite-only, put SteamIDs in permittedlist.txt the same way. Once that file isn't empty, only listed players can join.
Dev commands (cheats): what devcommands does
Type devcommands in the console to turn cheats on. On a dedicated server, being an admin doesn't turn them on: they work in single-player and in worlds hosted from the game. Since Valheim 1.0, using dev commands flags your character and world and blocks achievements.
| Command | What it does |
|---|---|
god | No damage |
ghost | Enemies ignore you |
debugmode | Unlocks fly (Z), no-cost building (B) and kill nearby enemies (K) |
freefly | Free camera |
spawn [item] [amount] [level] | Spawns an item or creature |
heal | Full health |
tod [0–1] | Sets time of day (tod -1 resets) |
skiptime [seconds] | Skips time forward |
exploremap / resetmap | Reveals or hides the whole map |
pos | Shows your coordinates |
goto [x,z] | Teleports you |
raiseskill [skill] [amount] | Raises a skill |
killall | Kills nearby enemies |
removedrops | Clears dropped items |
event [name] / stopevent | Starts or stops a raid event |
Run a Valheim server your group can always reach
A Packyard Valheim server is a password-protected dedicated server for PC (Steam). It runs on the same panel and backups as our Minecraft servers. You edit adminlist.txt in the panel's file manager, with no FTP client needed. Players join a permanent address with a name and port that stays the same, and there's no port forwarding on your side. Servers run in Seattle (US West).
- Size: 4 GB is our pick for 2–5 players ($6/month). 3 GB is $5, 5 GB is $7.50, 6 GB is $9, 7 GB is $10.50 and 8 GB is $12. That's $1.50 per GB per month, $5 minimum, in USD plus applicable taxes.
- First-payment refund if something on our side doesn't work (see Refunds). Cancel any time in the panel. Available in the US and Canada (not Quebec).
See Valheim hosting or how to make a Valheim server.
FAQ
Why does devcommands not work on my server?
Cheats are for single-player and game-hosted worlds. Admin rights on a dedicated server let you kick, ban, unban and save, but they don't turn on cheats.
Do I need to restart after editing adminlist.txt?
Some servers pick the change up on their own, but a restart is the sure way.
Does using dev commands affect achievements?
Yes. Since 1.0 it flags the character and world, and achievements are blocked for them.
Can Xbox players join a Packyard Valheim server?
No. Our Valheim servers are PC on Steam only, with no crossplay.
Also see: Valheim hosting, How to make a Valheim server. Back to Packyard home.
Valheim belongs to its owners. Packyard is not affiliated with them.