Gaming Guides Valheim

Valheim In-Game Commands Guide

Enabling Commands

In the interest of attempting to do a little bit of cheatos ingame, you can enable the console for this to let you use any commands. This guide explains how to enable the console, what the commands are and what they can do. Do keep in mind that the usage of commands or cheats, that this might break your enjoyment in playing the game as you can ruin the game for others. Use at your own risk!

To use in-game commands in Valheim, you first need to enable the console.

  1. Enable Console:
    • Open the Steam client.
    • Right-click on Valheim in your library.
    • Select “Properties”.
    • In the “General” tab, enter -console in the “Launch Options” box.
  2. Open the Console:
    • Launch Valheim.
    • Press F5 to open the console.
  3. Enable Cheats:
    • Type devcommands in the console to enable cheat commands.
    • Note: In multiplayer, you must be the server host or have admin rights to use cheats.

Basic Commands

  • help: Lists all available commands.
  • info: Displays information about your character and the current session.
  • save: Saves the game.
  • ping: Pings the server to check your latency.

Character and Gameplay Commands

  • god: Toggles god mode (invincibility).
  • ghost: Toggles ghost mode (enemies ignore you).
  • killall: Kills all nearby enemies.
  • tame: Tames all nearby tameable creatures.
  • exploremap: Reveals the entire map.
  • resetmap: Resets the map exploration.
  • pos: Prints the player’s current position.
  • goto [x,z]: Teleports the player to specified coordinates.
  • location: Spawns at a location based on coordinates or a named location.
  • event [name]: Starts a specific event (e.g., foresttrolls).
  • stopevent: Stops the current event.
  • setkey [key]: Sets a global key.
  • resetkey [key]: Resets a global key.
  • listkeys: Lists all global keys.

Item and Spawn Commands

  • spawn [item] [quantity] [level]: Spawns specified item. For example, spawn SwordIron 1 3 spawns a level 3 iron sword.
  • itemset [setname]: Gives a set of items defined in a set configuration.

Environment and Weather Commands

  • tod [0-1]: Sets the time of day. 0 is midnight, 0.5 is noon, and 1 is the next midnight.
  • skiptime [seconds]: Skips the specified amount of time in seconds.
  • sleep: Fast-forwards to the next morning.
  • weather [weather]: Sets the weather. Valid options include clear, rain, snow, and more.

Server and Multiplayer Commands

  • kick [name/ip/userID]: Kicks the specified player.
  • ban [name/ip/userID]: Bans the specified player.
  • unban [name/ip/userID]: Unbans the specified player.
  • banned: Lists all banned players.
  • ping: Checks server ping.
  • lodbias [number]: Adjusts the level of detail bias for the server.

Building and Creative Mode Commands

  • debugmode: Enables creative mode with unlimited resources and flight (use Z to toggle flight, K to kill all enemies, B to free build).
  • freefly: Toggles free camera mode.
  • fly: Toggles flight mode.

Miscellaneous Commands

  • resetcharacter: Resets your character to default.
  • raiseskill [skill] [amount]: Raises the specified skill by the given amount.
  • resetskill [skill]: Resets the specified skill to zero.
  • wind [angle] [intensity]: Sets the wind direction and intensity.

Examples of Usage

  1. Enabling Creative Mode:
    • Type debugmode in the console.
    • Use Z to toggle flight, K to kill all enemies, and B to build freely.
  2. Spawning Items:
    • To spawn 10 wood: spawn Wood 10.
    • To spawn a level 2 troll: spawn Troll 1 2.
  3. Setting Time of Day:
    • To set the time to noon: tod 0.5.
  4. Changing Weather:
    • To set the weather to rain: weather Rain.
  5. Revealing the Entire Map:
    • Type exploremap.