Valheim console commands and cheats: full list (PC)
Every Valheim console command and cheat: how to open the console, enable devcommands, spawn items, fly, teleport, god mode, plus server admin commands.
The console opens with F5 (add -console to the launch options if needed). An admin is a player listed in adminlist.txt: they get kick, ban, unban, save and info. Cheats (god, debugmode, spawn, tod, exploremap) are enabled with devcommands. On a Valheim server at LordHosting, the three files adminlist, bannedlist and permittedlist are edited from the panel.
Valheim has a built-in console with admin commands and cheats (called "dev commands"). Here is how to enable them and what each one does. This guide covers the PC version. To set up a server first, see How to set up a Valheim dedicated server.
⚙️ How to open the console
Press F5 in game. If nothing opens, add -console to the launch options: right-click Valheim in Steam > Properties > Launch Options.
⚙️ How to become a server admin
- Open
adminlist.txtin the server's save folder. - Add your SteamID64 on a new line (for an Xbox or crossplay player, their platform ID).
- Restart the server.
The neighbouring files work the same way: bannedlist.txt (banned players) and permittedlist.txt (whitelist: if it contains at least one ID, only those players can join).
On a Valheim server rented from LordHosting, these three files are edited directly from the panel's file manager, and a restart from the same screen applies them.
⚙️ Server admin commands
| Command | What it does |
|---|---|
kick [name/IP/ID] | Kicks a player |
ban [name/IP/ID] | Bans a player |
unban [IP/ID] | Lifts a ban |
banned | Lists banned players |
save | Saves the world now |
info | Server info |
ping | Ping to the server |
⚙️ Cheat commands (devcommands)
Type devcommands first to enable them. You will see a warning that cheats are enabled; type it again to turn them off. They are mostly for single player, or for an admin preparing an area or helping a player. On a server, some commands only affect your own character.
| Command | What it does |
|---|---|
god | God mode (no damage) |
ghost | Enemies ignore you |
debugmode | Enables debug mode: Z to fly, B for free building, K to kill nearby enemies |
nocost | Build without materials |
heal | Fully heals you |
tod [0-1] | Sets time of day (0.5 = noon; tod -1 back to normal) |
skiptime [seconds] | Skips time ahead |
killall | Kills nearby enemies |
removedrops | Removes items on the ground |
tame | Tames nearby creatures |
exploremap | Reveals the whole map |
resetmap | Hides the map again |
raiseskill [skill] [amount] | Raises a skill |
resetcharacter | Resets your character's skills and stats |
⚙️ Spawn commands
spawn [item] [amount] [level]
Examples:
spawn Wood 50
spawn Coins 999
spawn Wolf 1 3
Item names are internal English names without spaces (Wood, Stone, Coins, Iron, SwordIron). Creature names work the same way (Boar, Wolf, Lox).
⚙️ Teleport commands
| Command | What it does |
|---|---|
pos | Shows your current coordinates |
goto [x,z] | Teleports you to coordinates |
find [object] | Lists the closest matching objects (for example find Vegvisir) |
Debug mode stays on until you type debugmode again. An admin who forgets it can fly or build for free in front of other players without noticing.
⚙️ Good practices on a shared server
- Tell players before using cheats: many enjoy progressing without them.
- Run
savebefore any major change. - Keep a note of the commands you used so you can undo them if needed.
- Using cheats can affect achievements, depending on the game version.
- Prefer admin mods for repetitive tasks, see How to mod Valheim with BepInEx.
⚙️ Ready-to-paste configuration
The three player management files, placed in the server's save folder (the same one as worlds_local). One ID per line, replace the examples.
# adminlist.txt: the admins, one SteamID64 per line
76561198000000001
76561198000000002
# bannedlist.txt: banned players
76561198000000099
# permittedlist.txt: the whitelist, leave empty for an open server
76561198000000001
76561198000000002
76561198000000003
Lines starting with # are ignored by the game. Restart the server after every change.
✅ Conclusion
Console with F5, admins in adminlist.txt, moderation commands on one side and devcommands on the other: you have everything you need to run a Valheim server. The golden rule is still to save before acting and to warn your players.
Manage admins, bans and whitelists from your own Valheim server's file manager, with the server console available from the panel.
FAQ
All the answers to frequently asked questions about Valheim commands are in the FAQ box below. If a question is missing, contact LordHosting support via Discord or by ticket.
Frequently asked questions
Related guides
How to set up a Valheim dedicated server (and upload your world)
Set up a Valheim dedicated server step by step: install, launch parameters, crossplay, ports, admin list and how to upload your existing world.
How to mod Valheim (single player and dedicated servers)
How to install Valheim mods with BepInEx and r2modman, for single player and dedicated servers. Compatibility tips and the most popular mod types.

