Choose checkout

Pick the product you want to open. You will continue on our partner checkout.

Valheim Console Commands and Devcommands

Valheim's developer console gives players a direct way to enter commands while a world is running. It can be useful for testing builds, trying out creative ideas, moving around a familiar area, or learning how different parts of the game behave.

The first step is enabling the console. From there, the devcommands command unlocks the main set of cheat commands, including familiar options such as god mode, flying, and item spawning. This guide covers the basic PC workflow and a handful of commands worth knowing.

How to Open the Valheim Developer Console

On a PC, the console is opened with F5 while you are inside a Valheim world. If the console does not appear, make sure console access is enabled for the way you launch the game. On Steam, open Valheim's Properties from your Library and add `-console` to the Launch Options field, then start the game through Steam.

Once the world has loaded, press F5 to open the console. You can enter commands in the console window and press Enter to run them. The official Valheim support guide also documents the controller shortcut for opening the console: LB + LT + Start.

Enable Valheim Devcommands

With the console open, type `devcommands` and press Enter. This enables the main developer and cheat command set for the current session. Entering `devcommands` again switches that command set off.

If you are learning the available options, start with the console's `help` command to view the commands recognized by your current game build. Command availability can depend on the session and its permissions, so use the in-game command list as your reference when exploring less familiar options.

Useful Commands: God Mode, Fly, and More

A few commands are especially recognizable because they change how you move through or interact with the world. After enabling devcommands, enter a command by itself and press Enter. Commands that work as toggles can be entered again to switch the effect off.

  • `god` — Toggles god mode.
  • `fly` — Toggles flying mode.
  • `ghost` — Toggles ghost mode.
  • `nocost` — Toggles the no-cost building mode.
  • `help` — Displays command information for the current build.

Using the Valheim Spawn Command

The spawn command is used to create an item or creature in the world. Its basic structure is `spawn [item] [quantity]`. Replace `[item]` with the item's internal name and `[quantity]` with the number you want to create.

For example, `spawn wood 10` follows the command structure for creating ten units of wood. The exact item identifier matters, so check the spelling used by the current game data when a command does not return the item you expected. The same general approach can be used with supported creature identifiers.

Console Commands and ESP Serve Different Purposes

Valheim console commands are built-in text commands. They change or inspect aspects of the game session, such as movement modes, building rules, or spawned items. They are useful for experimentation and for understanding the game's own developer tools.

Valheim ESP is a separate visual feature set focused on markers for players, ore, bosses, ships, and creatures. The two approaches answer different questions: console commands let you enter instructions, while ESP presents selected information as an overlay during gameplay. Visit the Valheim ESP page for the product feature breakdown.

Related pages

Frequently asked questions

What key opens the Valheim console on PC?
Press F5 while inside a world. On Steam, add `-console` to Valheim's Launch Options if console access has not been enabled, then launch the game through Steam.
How do I enable devcommands in Valheim?
Open the console, type `devcommands`, and press Enter. Enter the command again to switch the developer command set off.
What is the Valheim god mode command?
After enabling devcommands, enter `god` in the console to toggle god mode.
How do I spawn items in Valheim?
Use the structure `spawn [item] [quantity]`, replacing the placeholders with the item's internal identifier and the number to create.

Image alt text patterns

Use these as guidance when adding screenshots or feature images to this page.

  • Valheim F5 developer console showing [command]
  • Valheim devcommands entered in the in-game console
  • Valheim god mode command example on PC
  • Valheim spawn command example for [item]