Skip to main content
🧟 PZ Build 42 is out! 25% off:DOOM25

VALHEIM COMMANDS TOOL

Valheim Console Commands

Every Valheim console, admin and cheat command in one searchable list, plus a spawn builder that writes the exact command with the right prefab ID. Copy it and paste it into the F5 console.

How to open the Valheim console

  1. Add -console to the launch options: right-click Valheim in your Steam library, open Properties, and type it into the Launch Options field.
  2. Start the game and press F5 to open the console. Chat and admin commands work right away.
  3. For the cheat commands, type devcommands and press Enter. Run it again to turn cheats back off.

On a dedicated server the cheat commands are switched off. Adding your SteamID64 or crossplay ID to adminlist.txt gives you the admin commands (kick, ban, save, world modifiers), not devcommands, which stays limited to singleplayer and locally hosted worlds.

Spawn Command Builder

Amount
Level

Level 1 is no stars, 2 is one star, 3 is two stars. Items ignore it.

spawn Greydwarf

Raid Event Builder

Eikthyr rallies the creatures of the forest.

Boars and Necks

event army_eikthyr

Global Key Builder

Building costs no resources.

setkey NoBuildCost

Command Reference

help [page] [pages]

Lists the available commands. The optional arguments show one slice at a time, so "help 2 4" shows the second quarter.

info

Prints the current system information.

ping

Pings the server and prints your latency.

lodbias [number]

Sets the draw distance, from 1 to 7.

nomap

Toggles map visibility. On a server this also toggles the nomap global key.

noportals

Toggles portals. On a server this also toggles the noportals global key.

optterrain

Converts terrain modifications made before update 0.150.3 in the nearby area to the new system.

resetsharedmap

Removes the shared map data from the cartography table.

printseeds

Prints the seeds and positions of nearby dungeons.

bind [keycode] [command]

Binds a command to a Unity keycode, for example "bind mouse4 cheer".

unbind [keycode]

Clears every custom bind from a keycode.

printbinds

Prints your current custom binds.

resetbinds

Removes all custom binds.

fov [number]

Changes the field of view.

maxfps [fps]

Sets the frame rate limit.

clear

Clears the console window.

cr

Forces an unload of unused assets, which otherwise happens every 20 minutes.

die

Kills your character.

respawn

Kills the character so you respawn.

resetspawn

Resets your spawn location.

resetknownitems

Resets your known items and recipes.

resetplayerprefs

Resets saved settings and variables. The save game is not touched.

s [message]

Shouts a chat message.

say [message]

Says a chat message.

w [player] [message]

Whispers a chat message to a player.

filtercraft [name]

Filters the crafting list to entries containing the text.

sortcraft [type]

Sorts the crafting list by Name, Type, Weight, Count or Original.

tutorialtoggle

Toggles whether tutorial messages are shown.

tutorialreset

Resets the tutorial messages you have already seen.

restartparty

Restarts the PlayFab party network, which is what crossplay sessions run on.

kick [name/ip/userID]

Kicks the named player from the server.

ban [name/ip/userID]

Bans the named player. The ban is written to bannedlist.txt.

unban [name/ip/userID]

Removes a ban.

banned

Prints the full list of banned players.

save

Forces the world to save right now.

setworldmodifier [name] [value]

Sets a world modifier, for example "setworldmodifier portals casual". Modifier names are combat, deathpenalty, resources, raids and portals.

setworldpreset [name]

Applies a world preset: normal, casual, easy, hard, hardcore, immersive or hammer.

resetworldkeys

Resets every world modifier back to default. Boss progression keys are not touched.

devcommands

Turns cheat commands on, and off again if you run it a second time. Singleplayer and locally hosted worlds only.

debugmodedevcommands

Toggles debug mode, which adds the free-build and fly hotkeys: B free build, Z fly, K kill nearby enemies, L remove nearby drops.

goddevcommands

Toggles god mode. Your health is held at 1 instead of dropping to 0.

ghostdevcommands

Toggles ghost mode, so enemies ignore you.

flydevcommands

Toggles fly mode. Space gains altitude, Ctrl loses it.

freeflydevcommands

Toggles the free camera, which is the one to use for screenshots.

ffsmooth [0-1]devcommands

Adds smooth movement to the free camera. Run "ffsmooth 0" to go back to normal.

nocostdevcommands

Toggles no cost mode, so building and crafting need no resources.

healdevcommands

Refills health, stamina and eitr.

pukedevcommands

Clears your food, returning health and stamina to the base values.

addstatus [name]devcommands

Adds a status effect, for example Rested, Burning, Wet or SoftDeath.

clearstatusdevcommands

Removes every status effect, good and bad.

killalldevcommands

Kills nearby enemies and tamed creatures. Players are not affected.

killenemiesdevcommands

Kills nearby enemies but leaves tamed creatures alone.

killtamedevcommands

Kills nearby tamed creatures.

tamedevcommands

Instantly tames every tameable creature nearby.

aggravatedevcommands

Aggravates neutral creatures within 20 meters.

removedropsdevcommands

Removes all item drops in the area.

removebirdsdevcommands

Removes all active birds.

removefishdevcommands

Removes all active fish.

forcedelete [radius] [name]devcommands

Removes objects within the radius, up to 50 meters. Players, tombstones, dungeons, Vegvisirs and the starting boss stones are never removed.

posdevcommands

Prints your current coordinates.

goto [x] [z]devcommands

Teleports you to the given world coordinates.

find [text] [pingmax]devcommands

Finds matching objects and pings them on the map.

findtp [text]devcommands

Finds matching objects and teleports you to the nearest one.

recall [name]devcommands

Teleports every player matching the name to you. Without a name it pulls in everyone.

raiseskill [skill] [amount]devcommands

Raises a skill by the amount. Use All for every skill, and put a minus in front of the value to lower it.

resetskill [skill]devcommands

Sets a skill back to level 0. Use All to reset every skill.

resetcharacterdevcommands

Resets all of your character data.

setpower [name]devcommands

Sets your Forsaken power and clears its cooldown, for example GP_Eikthyr or GP_TheElder.

setfuel [value]devcommands

Adds fuel to every nearby fire source. The default is 10 and a negative value drains them.

beard [beard]devcommands

Changes your beard permanently. With no argument it removes the beard.

hair [hair]devcommands

Changes your hair permanently. With no argument it removes the hair.

model [0-1]devcommands

Switches the character model between masculine and feminine.

players [number]devcommands

Scales difficulty as if that many players were present. Use 0 to reset it.

dpsdebugdevcommands

Toggles the damage per second debug print.

printcreaturesdevcommands

Prints the count and level of the active creatures.

printlocationsdevcommands

Prints the loaded locations with their distance and offset to you.

spawn [name] [amount] [level]devcommands

Spawns a prefab. Level applies to creatures only: 1 is no stars, 2 is one star, 3 is two stars.

itemset [name] [keep]devcommands

Spawns a premade gear set such as Meadows, Swamps, Mountains, Plains, Mistlands, MistlandsMage, Ashlands or Fisherman. Without the keep flag your current items are dropped.

location [name]devcommands

Spawns a location instance. This permanently disables saving for the session unless you add SAVE after the name.

genlocdevcommands

Redistributes every location that has not been placed yet.

nextseeddevcommands

Regenerates the next dungeon with a new seed. This permanently disables saving.

exploremapdevcommands

Reveals the entire map.

resetmapdevcommands

Hides the entire map again.

listkeysdevcommands

Lists every global key currently set on the world.

setkey [name]devcommands

Adds a global key, which is how boss progress and world modifiers are stored.

removekey [name]devcommands

Removes a single global key.

resetkeysdevcommands

Removes all global keys. The name argument the console suggests does nothing.

event [name]devcommands

Starts the named raid event at your position.

stopeventdevcommands

Stops the raid event that is running.

randomeventdevcommands

Starts a random raid event.

tod [0-1]devcommands

Sets the time of day. 0 and 1 are midnight, 0.5 is noon, and -1 hands control back to the game.

skiptime [seconds]devcommands

Skips time forward, 240 seconds by default. Spawns, crops, smelters and kilns pause until the world time catches up.

sleepdevcommands

Skips forward one day.

timedevcommands

Prints the current time and whether sleeping is possible.

timescale [target] [fadetime]devcommands

Sets the speed of time, up to 5x. A value of 0 pauses the game and free camera still works.

env [name]devcommands

Forces a weather environment, for example Clear, Misty, Rain, ThunderStorm, SnowStorm, Ashrain, Bonemass or Moder.

resetenvdevcommands

Hands the weather back to the game.

wind [angle] [intensity]devcommands

Sets wind direction and strength. Angle is 0 to 360 and intensity is 0 to 1.

resetwinddevcommands

Resets wind angle and intensity.

Frequently asked questions Find answers to common questions about our server hosting.

Any more questions?