How to Activate Valheim console commands?

Last modified on 23 July 2024 in Valheim
  • 3 min read
  • 1229
  • 0
Vladyslav Kryshtafovych

Vladyslav Kryshtafovych

Game Specialist

How to open console in Valheim?

Using Valheim server hosting is a great survival simulator in the Viking world, but sometimes you don't want to waste your time collecting resources or endless battles with enemies and just enjoy the sandbox. If the game seems too complicated for you, or if you are a server administrator or, for example, make videos about this game, a console will be a useful tool for you. In this short guide, we'll show you how to open the console in Valheim, what commands exist, and who can access them.

Activating the Valheim console

  1. Launch Steam and find Valheim (1) in the list of games in your library, right-click on it, and select "Properties" (2).
  2. In the "General" tab (1), find the "launch options" line and write -console (2) in it, then close this window and launch the game.
  3. Enter the world and press the F5 key (1), after which a console window with a command line will appear on your screen (2).

IMPORTANT

If the console does not appear when you press F5, check if the -console startup option is saved in the game properties and restart the game!

Valheim console commands for the player

  • help - Shows the available commands.
  • info - Displays current system information about the game.
  • ping - Shows the ping to the server (in multiplayer).

Valheim console commands for the administrator

  • ban [name/ip/userID] - Ban a player.
  • banned - List of all banned players.
  • kick [name/ip/userID] - Kick a player.
  • lodbias [number] - Change the distance of drawing objects. The second parameter is a number from 1 to 5.
  • save - Save the game immediately.
  • unban [name/ip/userID] - Unban the player.

How to enable Valheim dev commands mode??

valheim dev commands - a command that enables/disables developer mode. It works in a single player game or only for the host (server creator) in multiplayer.

valheim debug mode - the command allows you to activate special functions by simply pressing the following keys:
[b] - a mode in which construction, as well as the creation and improvement of any items, do not require crafting stations and resources;
[z] - flight mode, in which [Space] - takeoff, [ctrl] - descent, [l. shift] - acceleration. Allows you to move around the game world very quickly;
[k] - kills all creatures (even tame ones) in a large radius around the character;
[L] - removes all objects lying on the ground in a certain radius around the character.

Below are some commands available only in developer mode.

freefly - free flight of the camera.
god - enables/disables the God mode. Invulnerability to damage.
ghost - enables/disables the ghost mode. Enemies ignore you.
setpower [code] - activates the specified power of the Fallen One for the character (GP_Eikthyr, GP_TheElder, etc.) and resets the rollback time.
puke - removes stamina and hunger, health/stamina resets to base values.

Valheim Server Hosting

Godlike Valheim Server Hosting

Test 3 days

Rate the article on a 5-point scale

Be the first to rate this news!
Find mistake? Select it and press Ctrl + Enter to let us know.
Demo
Game
Panel
×

Report a bug

Error text

Your choice