Enable Dev Commands on Your Valheim Server

Install the Server Devcommands mod to use spawn, fly, god mode, and other debug commands on your Valheim dedicated server.

Valheim blocks dev commands on dedicated servers by default — typing devcommands in the console does nothing. To unlock them you need the Server Devcommands mod from Thunderstore.

Why Dev Commands Are Blocked

Vanilla Valheim only allows dev commands in singleplayer to prevent abuse on public servers. The Server Devcommands mod re-enables them but limits use to admins listed in adminlist.txt.

Install the Server Devcommands Mod

Switch to BepInEx mode

In the XGamingServer Panel, click Mods in the sidebar. If your server is in Vanilla mode, click the BepInEx card to switch.

Warning: Switching modes reinstalls the server and erases all data. Back up first via Backups in the sidebar.

Search and install

In the Browse Mods tab, search for Server devcommands. Click Install on the matching mod from the search results.

Restart the server

Go to Console and restart.

Connect and enable

Join the server, press F5 to open the console, and type:

devcommands

You should see devcommands = true.

You must be on the admin list to use dev commands, even with the mod installed. Non-admins are blocked.

Useful Dev Commands

Item Spawning

spawn SwordIron 1
spawn ArrowFire 50
spawn Wood 100
spawn Coins 999

See Spawn Items for the full item ID reference.

Movement

CommandEffect
flyToggle flight (Space = up, Ctrl = down)
ghostEnemies ignore you
godToggle invincibility
goto <x> <z>Teleport to world coordinates

World Management

CommandEffect
exploremapReveal the entire map
resetmapReset map fog of war
killallKill all nearby enemies
tameTame all nearby creatures
genlocRegenerate dungeon locations

Time and Weather

CommandEffect
tod <0-1>Set time (0 = midnight, 0.5 = noon)
skiptime <seconds>Skip forward in time
sleepSkip to next morning
wind <angle> <intensity>Control wind
resetwindReset to natural wind

Server-Side Only

Server Devcommands is server-side only — clients don't need to install anything. Players who are admins on the server can use dev commands from their game client without modifying their installation.

Security Considerations

  • Only admin-listed players can use dev commands
  • Dev commands trivially break game balance (instant endgame items, infinite resources)
  • Monitor Console for command usage by admins
  • Consider restricting which commands specific admins can use via the mod's access list

How is this guide?

40% Off — Limited TimeGet your Valheim server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page