Use Devcommands
By default you can't use devcommands such as flying and spawning items in a multiplayer server, however the Server devcommands mod makes it possible to use these in multiplayer. This mod enables powerful debugging and cheat commands on dedicated servers, allowing admins to spawn items, fly, and manipulate the game world for testing or administrative purposes.
What Devcommands Can Do
Spawn any item, toggle god mode, fly freely, toggle creative mode, kill all enemies, explore without stamina drain, and much more. Essential for server administration and testing.
Requirements
Requires BepInEx framework, the Server Devcommands mod, and admin privileges on the server. All players must have the mod installed to join the server.
Safety Warning
Devcommands can permanently alter your world. Use on test worlds first. Some commands may cause client crashes or save corruption if misused.
Part 1: Server-Side Installation
First, install the mod on your dedicated server:
- Enable BepInEx: Go to your Supercraft panel and open the Mods (BepInEx) tab. Enable BepInEx if not already active.
- Download the Mod: Visit the Server devcommands Thunderstore page and download the latest version.
- Extract the Archive: Open the downloaded ZIP file. You'll find
ServerDevcommands.dllinside. - Access File Manager: Open your server's File Manager in the control panel.
- Upload to Plugins: Navigate to
/steamcmd/valheim/BepInEx/plugins/and dragServerDevcommands.dllinto this folder. - Restart the Server: Apply changes by restarting your Valheim server.
Part 2: Client-Side Installation
All players (including admins) need the mod installed on their client to join a server running Server devcommands:
- Enable Console: In Steam, right-click Valheim and select Properties. In the "General" tab, add
-consoleto the launch options box. - Install Mod Manager: Download and install r2modman, the recommended mod manager for Valheim.
- Add the Mod: Open r2modman, select Valheim, and search for "devcommands". Download Server_devcommands by JereKuusela.
- Enable and Launch: Ensure the mod is enabled in your profile and click Start modded. You can now use devcommands in-game.
Common Devcommands
Once installed, open the console with F5 and try these popular commands:
| Command | Effect |
|---|---|
god | Toggles god mode (no damage, no stamina drain) |
fly | Toggles free-flight mode |
ghost | Toggles noclip mode (walk through walls) |
env [debug] | Toggles debug environment mode (build without resources) |
spawn [item] [amount] | Spawns items (e.g., spawn Wood 100) |
resetmap | Resets the entire map exploration (use with caution!) |
killall | Kills all enemies in the area |
tameall | Tames all nearby animals |
heal | Instantly heals your character to full health |
Troubleshooting
Commands Not Working: Ensure you're registered as an admin in adminlist.txt. Check the Grant Admin guide for instructions.
Players Can't Join: All players must have the exact same version of Server devcommands installed. Version mismatches will cause connection errors.
Mod Not Loading: Verify BepInEx is installed correctly and check LogOutput.log in the BepInEx folder for error messages.
Admin Requirement: You must be added to the server's admin list to use devcommands. See our Grant Admin guide for detailed instructions on how to become an administrator.