Valheim console commands cover both single-player cheats (god, fly, spawn) and dedicated-server admin (kick, ban, save). Here's how to enable the console and the full list that matters, with syntax. Cheats need devcommands and only work where you're allowed to use them.
Quick answer
To use Valheim console commands, add -console to the game's Steam launch options, press F5 in-game and type devcommands to enable cheats such as god, fly and spawn. On a dedicated server, admin commands like kick, ban and save work for players listed in adminlist.txt.
Launch Valheim with -console as a Steam launch option, then press F5 in-game to open the console. Type devcommands to enable cheat commands. Cheats work in single-player and on servers where you have permission; the admin commands below work for server admins listed in adminlist.txt.
Cheats (after devcommands)
| Command | What it does |
|---|---|
god | Toggle god mode (no damage). |
fly | Toggle flight (needs god/dev on). |
ghost | Enemies ignore you. |
heal | Restore health. |
killall | Kill all nearby enemies. |
tame | Tame nearby tameable creatures. |
Spawning & world
| Command | What it does |
|---|---|
spawn <item> <qty> <level> | Spawn items or creatures (e.g. spawn Wood 50). |
pos | Show your coordinates. |
goto <x,z> | Teleport to coordinates. |
tod <0-1> | Set time of day (0.5 = noon, -1 to resume). |
skiptime <seconds> | Skip ahead in time. |
removedrops | Clear dropped items in the area. |
Dedicated server admin
| Command | What it does |
|---|---|
kick <name/ip/id> | Kick a player. |
ban <name/ip/id> | Ban a player. |
unban <name/ip/id> | Remove a ban. |
banned | List banned players. |
save | Force-save the world now. |
players <n> | Set the difficulty scaling as if n players. |
Server admin commands (kick/ban/save) only work for players whose SteamID64 is in adminlist.txt in the save directory — one per line, then restart. Cheat commands additionally need devcommands enabled and permission on the server.
More cheats (after devcommands)
| Command | What it does |
|---|---|
raiseskill <skill> <amount> | Raise a skill level (e.g. raiseskill run 100). |
resetskill <skill> | Reset a skill to zero. |
event <name> | Start a random event (e.g. army_eikthyr); stopevent ends it. |
sleep | Skip to morning (must be safe to sleep). |
dpsdebug | Toggle damage-per-second debug output. |
puke | Clear food buffs so you can eat fresh (testing). |
Related Valheim guides
Setting a server up? See how to make a Valheim server and shape it with our best Valheim server settings. If it won't appear, see fixing Valheim not showing.
Valheim is a trademark of Iron Gate AB / Coffee Stain Publishing. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Iron Gate or Coffee Stain.