Menu
 

Use Devcommands

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:

  1. Enable BepInEx: Go to your Supercraft panel and open the Mods (BepInEx) tab. Enable BepInEx if not already active.
  2. Download the Mod: Visit the Server devcommands Thunderstore page and download the latest version.
  3. Extract the Archive: Open the downloaded ZIP file. You'll find ServerDevcommands.dll inside.
  4. Access File Manager: Open your server's File Manager in the control panel.
  5. Upload to Plugins: Navigate to /steamcmd/valheim/BepInEx/plugins/ and drag ServerDevcommands.dll into this folder.
  6. 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:

  1. Enable Console: In Steam, right-click Valheim and select Properties. In the "General" tab, add -console to the launch options box.
  2. Install Mod Manager: Download and install r2modman, the recommended mod manager for Valheim.
  3. Add the Mod: Open r2modman, select Valheim, and search for "devcommands". Download Server_devcommands by JereKuusela.
  4. 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
godToggles god mode (no damage, no stamina drain)
flyToggles free-flight mode
ghostToggles noclip mode (walk through walls)
env [debug]Toggles debug environment mode (build without resources)
spawn [item] [amount]Spawns items (e.g., spawn Wood 100)
resetmapResets the entire map exploration (use with caution!)
killallKills all enemies in the area
tameallTames all nearby animals
healInstantly 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.

Top