The Valheim Database

Valheim Console Commands

Everything you'd ever need to know - and more - about Valheim console commands and cheats on PC and XBOX.

Valheim

How to Enable and Use the Valheim Console

  1. 1

    Enable the console by adding -console to your launch options for Valheim (see this guide for help doing this on Steam, Windows Store and Game Pass).

  2. 2

    Press F5 on your keyboard to open the console.

  3. 3

    Type devcommands to enable access to "cheat" commands (optional).

  4. 4

    Type a command into the console and hit ENTER to run it.

More Help

Below you can find Commands.gg's complete, up-to-date list of all 90 Valheim console commands, these are commonly referred to as cheats.

We recommend checking out the best Valheim cheats table if you're not looking for anything in particular. And if you're looking to spawn items, use our spawn items command generator.

Commands tagged Cheat require you to first run the command devcommands before they will work. Commands tagged with Admin require your Steam ID (or user ID) to be in the server's admin list.

Best Valheim Cheats

Cheat Description
spawn

Spawns the specified item with the specified amount and level.

god

Toggles god mode (invincibility and instant kill when you attack anything).

debugmode

Toggle creative mode. In creative mode, you can press:

  • Z to toggle fly.
  • K to kill all nearby enemies.
  • L to remove nearby items on the floor.
  • B to toggle infinite crafting and access to all recipes.
ghost

Undetectable by enemies.

raiseskill

Raises the specified skill by the specified amount.

resetskill

Sets the specified skill to zero.

nocost

Toggle unlimited resources and access to all crafting recipes.

heal

Resets health to full.

model 1

Makes you female.

resetcharacter

Clear inventory and set all skills to zero.

hair

Sets your hairstyle to the specified style.

beard

Sets your beard style to the specified beard.

model 0

Makes you male.

addstatus

Gives you the specified status effect.

fly

Toggle fly mode.

freefly

Toggle freecam.

killenemies

Kill all nearby enemies.

killtame

Kill all nearby tamed animals.

killall

Kill all nearby tamed animals and enemies.

tame

Tame all nearby animals.

tod

Set the time of day, where 0 is midnight, 0.5 is midday, 0.25 is 6AM, 0.75 is 6PM, etc.

After using this command, the time will not change. Use tod -1 to set the time back to normal cycle.

itemset

Gives you the specified item set. Specify keep at the end to keep your currently inventory (otherwise, it'll be replaced).

env

Sets the weather to the specified type.

event

Starts the specified event.

Spawn Item Command

You can spawn items in Valheim with the spawn console command. Simply select an item code, amount and level below to generate a spawn command.

Select an Item ID
Select an Amount
Select a Level
Select an item id, an amount and a level to generate a command...

Raise Skill Command

In Valheim, the raiseskill command is used to increase the level of one of your skills. Select a skill (e.g. fists) and adjust the slider to the amount you wish to raise it by, then copy the generated command and paste it into Valheim to increase your skill!

Select a Skill
Select an Amount
Select a skill and an amount to generate a command...

location

This command spawns the specified location instance. If you don't specify "SAVE" at the end of the command, it will permanently disable world saving. See all codes on our location ID list.

More Help

spawn

This command spawns the specified amount of items or characters. See our item ID list and character ID list for entity IDs. Level only affects characters. Using a level higher than 10 can cause the game to crash upon their death, due to the amount of item drops.

More Help

fly

This command enables and disables (toggles) fly mode for your character.

More Help

ghost

This command enables and disables (toggles) ghost mode for your charcter. This prevents enemies from attacking your character.

More Help

bind

This command binds the specified command to the selected keycode.

More Help

freefly

This command enables and disables (toggles) free camera mode for your chracter.

More Help

god

This enables and disables (toggles) god mode for your character.

More Help

challenge

This command causes your character to display the "challenge" emotion.

More Help

cheer

This command causes your character to display the "cheer" emotion.

More Help

clear

This command removes all previously entered commands from the console display.

More Help

fov

This command changes the field of view to the specified value, with 120 being the default.

More Help

hidebetatext

This command enables and disables (toggles) the display of beta text.

More Help

help

This command displays available commands. Using certain arguments will display certain sections of the command list.

More Help

info

This command displays the current system information.

More Help

lodbias

This command changes the draw distance of the server to the specified value (the value can only be set between 1-5).

More Help

nomap

This command enables and disables (toggles) the map display.

More Help

noportals

This command removes all portals from player piece tables. Whilst players will be unable to construct new portals, admins will still have the ability.

More Help

nonono

This command causes your character to display the "Nonono" emotion.

More Help

optterrain

This command updates outdated terrain to the new system within the nearby area (only works with terrain generated prior to update 0.150.3).

More Help

point

This command causes your character to display the "point" emotion.

More Help

ping

This command displays your ping at the top of the screen.

More Help

printbinds

This command displays all of your current keybinds.

More Help

printseeds

This command displays the seeds and locations of nearby dungeons.

resetbinds

This command removes all of your current keybinds.

More Help

resetspawn

This command resets the current spawn location.

More Help

respawn

This command kills your character.

More Help

s

This command shouts your chat message, making it visible to everyone on the server.

More Help

say

This command says your chat message, making it visible only to nearby players.

More Help

sit

This command causes your character to display the "sit" emotion.

More Help

thumbsup

This command causes your character to display the "thumbs up" emotion.

More Help

tutorialreset

This command resets all of your viewed tutorial messages.

More Help

tutorialtoggle

This command enables and disables (toggles) the display of tutorial messages.

More Help

unbind

This command unbinds all of your commands from the specified keycode.

More Help

wave

This command causes your character to display the "wave" emotion.

More Help

W

This command whispers your chat message to a specified player, making it only visible to them.

More Help

ban

This commands bans the specified player from the server.

More Help

banned

This command displays all currently banned players.

More Help

kick

This command kicks the specified player from the server.

More Help

save

This command forces a world save.

More Help

unban

This command unbans the specified player from the server.

More Help

addstatus

This command adds the specified status effect to your character.

More Help

beard

This command changes your beard, with values only ranging between 1-4. Without an argument this command will remove your current beard.

More Help

clearstatus

This command removes all status effects from your character.

More Help

dpsdebug

This command enables and disables (toggles) the dps debug display.

More Help

env

This command sets the debug environment to the specified argument.

More Help

exploremap

This command reveals the entire map (even if areas have not been explored).

More Help

event

This command starts the specified event.

More Help

ffsmooth 1

This command smoothens your camera movements.

ffsmooth 0

This command resets your camera movements to default.

forcedelete

This command removes all objects within the specified radius from your character. If a specified object name is entered, only that object will be removed.

More Help

find

This command pings the specified object on your map. If the pingmax amount is greater than the default value of 1, it will pin the location instead.

More Help

gc

This command displays garbage collection information.

More Help

genloc

This command relocates all currently unplaced locations.

More Help

goto

This command teleports your character to the specified coordinates.

More Help

hair

This command changes your hairstyle, with values only ranging between 1-4. Without an argument this command will remove your current hairstyle.

More Help

heal

This command heals your character to full health.

More Help

itemset

This command gives your character a specified premade item set. Without the use of the "keep" argument, all of your current inventory items will be dropped. Item sets are (without quotes): "Meadows" (skills set to one, wood and flint weapons, bronze pickaxe), "BlackForest" (skills set to 10, wood and flint weapons), "Swamps" (skills set to a number between 10 and 20, bronze weapons, bronze armor), "Mountains" (skills set to 25, iron weapons, iron armor), "Plains" (skills set to 35, silver weapons, wolf armor), "PlainsBoss" (skills set to 40, blackmetal weapons, padded armor), "EndGame" (skills set to 70, upgraded blackmetal weapons, padded armor).

More Help

killall

This command kills all nearby enemies and creatures, including tamed animals.

More Help

listkeys

This command displays all global keys.

More Help

model

This command changes your character from masculine to feminine, and vice versa.

More Help

nextseed

This command forces the next dungeon seed, however permanently disables world saving.

More Help

nocost

This command enables and disables (toggles) the no cost build mode. This allows your character to build without having the required materials.

More Help

players

This command adjusts the difficulty scale. Using 0 as the argument will reset the difficulty.

More Help

pos

This command displays the coordinates of your current position.

More Help

printcreatures

This command displays the amount and levels of active creatures.

More Help

printlocations

This command displays all loaded locations and their distance from your character.

More Help

puke

This command resets your character's hunger levels, returning you to default health and stamina.

More Help

raiseskill

This command raises the specified skill by a specified amount for your character.

More Help

randomevent

This command starts a random event nearby.

More Help

recall

This command teleports the specified player to your position.

More Help

removebirds

This command removes all current active birds in the server.

More Help

removedrops

This command removes all dropped items within the nearby area.

More Help

removefish

This command removes all current active fish in the server.

More Help

removekey

This command removes the specified global key.

More Help

resetcharacter

This command resets all of the data for your character.

More Help

resetenv

This command resets the current debug environment.

More Help

resetkeys

This command removes all global keys.

More Help

resetmap

This command removes all previously explored areas from the map.

More Help

resetskill

This command resets the specified skill, setting its level to 0.

More Help

resetwind

This command resets the wind's direction and speed.

More Help

setkey

This command adds a specified global key.

More Help

setpower

This command grants your character with the specified Forsaken Power. It will also reset the cooldown for the power.

More Help

skiptime

This command fasts forwards the game for the specified amount of time.

More Help

sleep

This command fasts forwards the game for one day.

More Help

stopevent

This command stops the current event.

More Help

tame

This command tames all creatures nearby to your character.

More Help

time

This command displays the current world time, and whether your character is able to sleep.

More Help

timescale

This command changes the rate at which time passes. The fastest value time can pass at is 3, and using a value of 0 will pause time.

More Help

tod

This command sets the time of day, with values 0 and 1 both being midnight. Using the value of -1 will change back to default time.

More Help

wind

This command sets the speed and direction of the wind. The angle value must be between 0 and 360, with 0 blowing North, and intensity being between 0 and 1.

More Help

Full Guide: How to Enable and Use the Console in Valheim

Valheim is a great game, and it can be made even greater with console commands. Console commands, commonly referred to as cheats, are "commands" you type into the game to spawn items, change settings, and do a lot more.

If you're playing on XBOX, you don't need to enable the console, simply RB, LB, RT and LT at the same time, then the menu button and finally A to bring up the keyboard and type in a command.

If you're playing on PC, you'll need to enable the console before you can use commands. How you do this depends on whether you are playing via Steam, the Game Pass (Windows Store). See help for your platform below:

If you've already enabled the console, simply press F5 on your keyboard to open up the console. Hit the ENTER key on your keyboard after typing in a console command to run it

How to Enable and Use the Console on Steam

To enable the console in Steam, right-click the game in your Library and select "Properties":

Valheim Steam properties

Once in the Properties screen, enter -console into the "Launch Options" text box, as is shown in the below image:

Valheim Steam console launch option

You can then close this window and launch Valheim. The console can be opened by pressing the F5 key.

How to Enable and Use the Console on Game Pass (Windows Store)

To enable the console in the Game Pass version of Valheim, navigate to the game's install folder. This is usually:

C:\XboxGames\Valheim\Content

Right click "Valeim.exe" (this may be just "Valheim" on your computer) and click "Create shortcut":

Valheim create shortcut

Drag the shortcut to your desktop (or wherever you'd like it to be):

Valheim move shortcut to desktop

Right click the shortcut and select "Properties":

Valheim shortcut properties

From here, add " -console" (without quotes) to the end of the "Target:" field (shown in the below image). Then click Apply and finally OK:

Valheim add -console launch option to Game Pass shortcut

Now launch the game from this shortcut (not directly from Game Pass), and you can open the console by pressing the F5 key.