
Turning the console on in Steam
Valheim installations made through Steam gain developer mode once the -console argument is placed in the launch options, which are found in the Steam library. Keep starting the game from that Steam library shortcut, since launching by another route may leave the console unavailable.
Opening it and running commands
After entering a world, pressing F5 opens the console when using a keyboard, while a controller uses LB + LT + Start. Typing and executing devcommands is then needed before most of the remaining commands can be used.
Step-by-Step Guide
Add the launch argument
In the Steam library, open Valheim's launch options and add the -console argument there to enable developer mode.
Start the game through Steam
Begin Valheim from the Steam library shortcut that has the argument set, rather than another launch route.
Open the console and run devcommands
Inside a world, press F5 with a keyboard or LB + LT + Start with a controller, then type and execute devcommands so most commands become usable.
Exceptions & Troubleshooting
If the console does not open
Check that the console is properly enabled and that the game is launched through the shortcut used to enable it. When using a keyboard, ensure it is not in Function mode, common on laptops and Mac devices; depending on how Windows was installed and user permissions set up, launching Valheim in administrator mode may be needed to use the console.