25% OFF First Invoice

Code at Checkout: APEX25

How to Enable Console Commands in Valheim

Last modified on Sep 5, 2022 in valheim

mc head By Dalton Whalen

Enable Console Commands Valheim


When playing Valheim, whether on singleplayer or a server, you may find yourself in need of additional permissions to modify the gameplay. Whether it’s to disable tutorials, moderate servers, or gain access to creative mode, these can all be achieved through the Valheim game console. While it is disabled by default, the game console will provide access to tons of in-game commands that can reshape the gameplay loop. Enabling the Valheim console can be confusing for unfamiliar players, so we have created this Apex Hosting tutorial to ease you through the setup process.

Activating the Console

  1. Navigate to the Steam application.
  2. Locate and right-click on the Valheim game.
  3. Select Properties and wait for the window to open.
  4. Locate the Launch Options field in the general section.
  5. In the field, enter -console.

Once this has been done, you can start the game and access the server console using the F5 key from in-game.

Notable Console Commands

The console commands that are available to you will depend on whether you are playing on a singleplayer world or a multiplayer server. Keep in mind, using console commands on a server requires you to be an admin.

For a full list of commands, visit the console commands wiki.

Player Commands

These generic commands are available in both singleplayer and on servers, as they only affect the individual executing the command.

clear - Clears the console window.
lodbias [number] - Sets the draw distance for the server. The number can be set from 1 to 5.
nomap - Toggles map visibility.
respawn - Kills the character.
tutorialreset - Resets viewed tutorial messages.
tutorialtoggle - Toggles whether the tutorials are shown.
W [player name] - Whispers a chat message to a player.


Server Admin Commands

The following commands are used on a Valheim server and require admin access in order to use them.

ban [name/ip/userID] - Bans the named user.
banned - Shows a full list of banned users.
kick [name/ip/userID] - Kicks the named user.
save - Forces the game to save.
unban [name/ip/userID] - Unbans the named user.


Singleplayer Cheat Commands

These commands are available for use in singleplayer only. In order to use these commands, you must first execute devcommands in the console to gain access. If you wish to revoke your access, simply use devcommands once again.

addstatus [name] - Adds a status effect (Rested, Burning, SoftDeath, Wet, etc).
fly - Toggles the fly mode (same as in the debug mode).
ghost - Toggle the ghost mode (enemies ignore you).
god - Enables the god mode.
nocost - Toggles the no cost mode (same as in the debug mode).
raiseskill [skill] [amount] - Raises (or lowers) the named skill by the value entered.
spawn [entity name] [amount] [level] - Spawns specified entity
time - Shows the current time and whether sleeping is possible.


Debug Mode

When debug mode is activated, you are able to toggle several abilities without the use of extra commands in singleplayer worlds. To achieve this, use debugmode in the console to toggle this mode on or off. Now you can use the following keybinds:

B - Toggle creative mode building, no workbenches or resources required for builds.
K - Kills all nearby creatures, including enemies and tamed creatures
L - Removes all item drops in the area.
Z - Toggle the flying ability. Use Space to rise and Ctrl to fall.


Common Issues

The console does not open when I press F5:
If this occurs, it often means that the launch option is not working. Return to the properties section of Valheim and confirm that -console is there and typed correctly, including the dash. After this is confirmed, restart the game and try it once more.

Commands aren’t working on the server:
Oftentimes, this means that you are not an admin on the server. Ensure the steps have been followed to set yourself as an admin. Other commands, such as god mode and ghost, are only available on a singleplayer world and cannot be accessed on a server.

The cheat commands are not working on singleplayer:
When this occurs, ensure that devcommands has been executed in the console. You can confirm this works when it displays that dev commands are set to true. Once this has been entered and confirmed, the cheat commands should now be accessible through singleplayer normally.

Start Your Valheim Server

Get started with your own valheim server in 5 min and start trying out these great features.