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:
devcommandsYou 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 999See Spawn Items for the full item ID reference.
Movement
| Command | Effect |
|---|---|
fly | Toggle flight (Space = up, Ctrl = down) |
ghost | Enemies ignore you |
god | Toggle invincibility |
goto <x> <z> | Teleport to world coordinates |
World Management
| Command | Effect |
|---|---|
exploremap | Reveal the entire map |
resetmap | Reset map fog of war |
killall | Kill all nearby enemies |
tame | Tame all nearby creatures |
genloc | Regenerate dungeon locations |
Time and Weather
| Command | Effect |
|---|---|
tod <0-1> | Set time (0 = midnight, 0.5 = noon) |
skiptime <seconds> | Skip forward in time |
sleep | Skip to next morning |
wind <angle> <intensity> | Control wind |
resetwind | Reset 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
Related Guides
How is this guide?

Disable Building and Crafting Costs on Your Valheim Server
Enable free building mode on your Valheim dedicated server using the nobuildcost world modifier or the hammer preset.
Valheim Network Troubleshooting
Fix common Valheim connection issues — server not in browser, can't connect, crossplay problems, mod conflicts.