Add your email address if you would like a reply.
Report Issue

Console Commands – Valheim

Valheim is primarily a sandbox game where you can go anywhere and do anything. And while it has its share of rules and limitations, you can often circumvent them by using various console commands.

Initially, these commands were classified as cheats. They allow you to do things like spawning new items, instantly defeating enemies and teleporting. But these days they’re seen more as developer commands, as some of them let you do things like freeing the camera from your character to create more impressive screenshots.

This guide will help you enable console commands in Valheim and list all available commands along with instructions for using them.

  • Enable the console
  • Open the console
  • Activate console commands
  • Enter the desired command

Before you can enter developer commands in Valheim, you’ll need to make sure you have access to the console. There are several ways to do this.

These days, the main one is to simply go into the Settings menu and in the Gameplay tab select the Enable Console option. This works for both the PC and Xbox versions of the game.

valheim console commands enable console

If you’re on PC, you can also override this setting through Launch Options.

  • In the Steam version, right-click Valheim, go to Properties and under Selected Launch Options add -console
  • In the Game Pass version, create a shortcut for Valheim, go into its Properties and add -console after the quotation marks of the Target field
valheim steam console launch option

  • On PC the default button to open the console is F5
  • On Xbox hit the combination of button xbox righttrigger + button xbox rightbumper + button xbox lefttrigger + button xbox leftbumper +button xbox menu

Before you can start entering all the other commands, you’ll need to type in devcommands into the console and hit Enter. This is easily done on PC. If you’re playing on an Xbox, you’ll either need to connect a keyboard or press the button xbox abutton on your controller to bring up the digital Xbox keyboard.

valheim console commands devcommands

The devcommands setting persists only for your current session. If you leave the game, you’ll need to enter devcommands again before other console commands.

Keep in mind that usually console commands won’t work on dedicated servers. They’re reserved for the servers you host personally.

Once you’re done with the previous steps, it’s time to enter the commands. Simply type the command in without any brackets or quotation marks. While certain commands and variables are capitalized, capitalization doesn’t matter so feel free to only use lowercase letters.

If commands come with variables, like entering a number or an item ID, put a space after the command and then enter the variable in the same way – without brackets or quotation marks. Then hit Enter to activate the command.

Valheim’s console has a pretty robust autocomplete feature. As you’re typing your commands in, it will suggest various ways to complete the command or variable. This can be especially helpful when you’re not quite sure what ID the item you’re looking to spawn has.

valheim console commands autocomplete
Autocomplete example

And before we get to the actual commands, it’s important to note that some commands can have permanent detrimental effects on your server. They can either ruin your progression or disable the save feature. So, if you’re looking to experiment with console commands, it’s best to create a backup for your world first.

While there are dozens of console commands in Valheim, this section will cover some of the most common and universally helpful ones. Square brackets after the command will cover their variables when applicable. But when entering them, you don’t need the brackets.

Command
What It Does
fly
allows you to fly
freefly
enables free camera
god
makes you invincible
goto [x] [z]
teleport to coordinates
ghost
makes you invisible to enemies
heal
full heal
nocost
allows to build everything
puke
clears active food buffs
raiseskill [skill] [#]
sets skill to specified level
repairall
repairs all equipment
skiptime [#]
fast forward # seconds
spawn [#]
spawns anything
tame
tames all nearby beasts

Spawn is one of the most useful commands. It allows you to spawn any object in the game right in front of you. You just need to know it’s ID. While the most reliable way to find an item’s ID is to look it up online, you can often figure it out yourself.

A good number of items have IDs very similar to their in-game name. You can start typing the name in the console and watch the autocomplete suggestions for what you need. This won’t work with every item, however. The Serving Tray, for example, has Feaster as its ID. And the game’s different types of fish have numbers in their IDs instead of their actual names.

After specifying which item you want to spawn and the number of said item, you can then add p, e, i, to your command.

  • p – spawns the item into your inventory instead of on the ground
  • e – automatically equips the spawned item
  • i – spawns the item only if you don’t have one in your inventory

Nocost is a toggle that allows you to craft or build anything without any cost. The command messes with your crafting menus and makes it so you can craft any item on any station. This can get annoying fast, so it’s advisable to toggle it off when not needed.

valheim console commands nocost
That’s not what you can normally craft at a Workbench

Goto is a command that lets you teleport anywhere in the world. All you need are the X and Z coordinates of your desired location. Separate the command and coordinates with a space.

To help you navigate, you can also use the pos command. It will tell you your exact current coordinates. Again, the ones determining where you are, are the X and Z coordinates. Ignore the Y.

And if you want to try and get in the general area of where you need to go without knowing the precise location, Valheim’s worlds tend to have most of their points of interest between -7000 and 7000 coordinates. The negative numbers represent the South and West edges of the map. And the positive ones will take you North and East.

Fly is a toggle that allows your character to fly. When this command is enabled, you’ll have expanded controls. Below are the default keys for flying in Valheim.

  • Space – go up
  • Ctrl – go down
  • Shift – boost flying speed

Here’s a table containing the full list of console commands in Valheim.

Command
What It Does
achievements
shows achievement info
addstatus [status]
adds status effect/buff
adrenaline
sets adrenaline level
aggravate
aggravates neutral creatures
altbiomes
lists biomes with modifiers
ban [name/IP/userID]
bans target player
banned
lists banned players
beard [1-16]
sets the beard style
bind [key] [command]
binds a console command to a hotkey
biomeinfo
shows info about current biome sector
catch [fishname] [level]
simulates catching a fish
cinematic [name]
plays cinematic
cinematicsleep [name]
plays cinematic next sleep
clear
clears the console
clearpopups
stops ongoing UI messages
clearstatus
clears status effects
confirmcheats
checks if achievements are disabled
cr
unloads unused assets
debugmode
activates ‘creative mode’
die
kills your character
dpsdebug
tracks your DPS
env [environmentID]1
sets the weather
event [eventID]2
starts an event
exclusivefulscreen
toggles between borderless and exclusive fullscreen
exploremap
reveals the full map
ffsmooth [0-1]
enables or disables smooth free camera movement
filtercraft [name]
filters crafting list to contain text
find [name] [pingmax]
locates a specific object and pings it on your map
findbiome
marks center of biomes on the map
findbiometp
finds closest specific biome and teleports you to it
findtp [text] [index=-1] [closerange=30]
searches loaded objects and locations to teleport you there
fly
allows you to fly
forcedelete [radius] [name]
deletes all objects in a specified area; only deletes specific objects if [name] is entered
fov [#]
sets a specific Field of View
freefly
enables free camera
gc
displays garbage collector info
genloc
regenerates all locations
getstat
gets specific stat
ghost
makes you invisible to enemies
god
makes you invincible
goto [x] [z]
teleport to coordinates
hair [1-23]
sets the hair style
haslocation
checks if zone has location
heal
full heal
height
prints height at current position
help [1-5]
shows sample commands
info
prints system info
inventoryclean
throws out invalid items
inventorysize
sets inventory size
itemset [set] [keep]3
spawns a specific set of gear; [keep] retains your current items
kick [name/IP/userID]
kicks designated player
killall
kills nearby creatures
killenemies
kills nearby hostile creatures
killtame
kills nearby tamed creatures
listkeys
displays global event keys
location [name]
spawns a particular location, disables saving
lodbias
sets draw distance
maxfps [#]
sets an FPS cap
model [0-1]
changes the character model
nextseed
generates next dungeon based on a new seed, disables saving
nocost
allows to build everything
nomap
disables the map
noportals
disables portals
nospawn
toggles monster spawning
optterrain
changes old terrain modifications to the new system
pevents [list/start/stop/here]
manages world events
ping
displays ping
players [#]
scales the difficulty to a set number of players
pos
displays current coordinates
printbinds
displays current hotkey binds
printcreatures
displays active creatures
printlocations
displays currently loaded locations
printseeds
displays seeds of loaded dungeons
printnetobj [radius = 5]
lists number of network objects around player
puke
clear active food buffs
raiseskill [skill] [#]
set skill to specified level
randomevent
starts random event
recall [name]
teleports all characters to you; the specified character if [name] is used
removebirds
removes all birds
removedrops
deletes all items around you
removefish
removes all fish
removekey
removes a global key
removekeyplayer
removes a key for this specific character
repairall
repairs all equipment
resetbinds
resets custom key binds
resetbuildui
resets building UI
resetcharacter
resets character data
resetenv
reverts environment to default
resetkeys
removes all global keys
resetknownitems
resets known items and recipes
resetmap
resets map
resetsharedmap
removes shared cartography table data
resetskill [skill]
resets specified skill
resetspawn
resets spawn location
resetwind
resets wind
resetworldkeys
resets world modifiers to default
respawntime
sets respawn time
restartparty
restarts party network to help with possible connection issues
save
manually saves the game
setfuel [amount=10]
sets all light fuel to specified amount
setkey [name]
sets a global key
setkeyplayer [name]
sets a key for this specific character
setpower [name]4
sets Forsaken Power and resets its cooldown
setworldmodifier [name] [value]
sets a world modifier value
setworldpreset [name]
resets world modifiers to a preset
skiptime [seconds]
fast-forwards time
sleep
skips time till next morning
snow [amount]
adds/removes snow to buildpieces
sortcraft [type]
sorts crafting lists
spawn [name] [#] [p,e,i]
spawns a specified item
stats
shows player stats
stopevent
stops current event
stopfire
puts out spreading fires
stopsmoke
puts out spreading fires and smoke
tame
tames nearby creatures
time
displays current time
timescale [0-3] [#]
adjusts game speed up to x3, second number determines fade in/out when changing speed
tod [-1 to 1]
stes time of day; 0 and1 = midnight, 0.5 = noon
tombstone [name]
creates a tombstone
tutorialreset
resets tutorial
tutorialtoggle
toggles tutorial hints
unban [IP/userID]
unbans target player
unbind [keycode]
clears all binds connected to keycode
updatecover
forces cover refresh update
vegetation
spawns vegetation
wind [angle] [intensity]
sets wind
yesiuseddevcommandsbutiwantmyachievementsanyway [1/0]
disables cheat checks to enable achievements

Here are the possible environmental IDs for the env command:

  • Ashlands_Ashrain
  • Ashlands_Ashrain_Clear
  • Ashlands_Cinderrain
  • Ashlands_Meteorshower
  • Ashlands_Misty
  • Ashlands_Seastorm
  • Ashlands_Storm
  • AshRain
  • Bonemass
  • Caves
  • Clear
  • Crypt
  • Darklands_dark
  • DeepForest
  • Eikthyr
  • GDKing
  • GoblinKing
  • Heath clear
  • InfectedMine
  • LightRain
  • Mist
  • Mistlands_clear
  • Mistlands_rain
  • Mistlands_thunder
  • Misty DeepForest
  • Moder
  • nofogts
  • Queen
  • Rain
  • SnowStorm
  • SunkenCrypt
  • SwampRain
  • ThunderStorm
  • Twilight_Clear
  • Twilight_Snowstorm

Here are the possible event IDs for the event command:

  • army_bonemass
  • army_charred
  • army_charredspawners
  • army_eikthyr
  • army_gjall
  • army_goblin
  • army_moder
  • army_seekers
  • army_theelder
  • bats
  • blobs
  • boss_bonemass
  • boss_eikthyr
  • boss_fader
  • boss_gdking
  • boss_goblinking
  • boss_moder
  • boss_queen
  • foresttrolls
  • skeletons
  • surtlings
  • wolves

Here are the possible item sets for the itemset command:

  • Ashlands
  • AshlandsFood
  • AshlandsMage
  • AshlandsMedium
  • AshlandsWarrior
  • AshlandsWeapons
  • BlackForest
  • Fisherman
  • Meadows
  • Mistlands
  • MistlandsGear
  • MistlandsMage
  • MistlandsWarrior
  • Mountains
  • Plains
  • PlainsBoss
  • Swamps

Here are the possible Forsaken Power IDs for the setpower command:

  • GP_Eikthyr
  • GP_TheElder
  • GP_Bonemass
  • GP_Moder
  • GP_Yagluth
  • GP_Queen
  • GP_Fader
Share this article:
Val Hull
Val Hull

Resident role-playing RPG game expert. Knows where trolls and paladins come from. You must fight for your right to gather your party before venturing forth.

Articles: 303
Subscribe
Notify of
guest

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments