Valheim console commands
How to open the console and turn on cheats
- In Steam, right-click Valheim, choose Properties and type
-consolein the launch options. - Start the game, load a world and press F5. The console opens at the top of the screen.
- Type
devcommandsand press Enter. The cheat commands now work. Type it again to switch them off.
adminlist.txt of the server, then join and press F5.The commands people use most
spawn Boar 1 3Spawns one boar of level 3 (two stars) next to you. The first word is the prefab name: see the item IDs and the creatures.spawn SwordIronPuts an iron sword on the ground in front of you. Add an amount after the name for stacks: spawn Wood 50.godTurns invincibility on and off.ghostMakes enemies ignore you.flyFree flight. Press the same key again to land.healFills your health and stamina.tod 0.5Sets the time of day, from 0 (midnight) to 1; tod -1 gives the clock back to the game.event army_eikthyrStarts a raid. randomevent picks one for you and stopevent ends it.goto 1200 -800Teleports you to x 1200, z -800 (the coordinates the map shows).exploremapUncovers the whole map; resetmap covers it again.tameTames every tameable creature close to you.killallKills the creatures around you, tamed ones included; killenemies leaves your pets alone.nocostBuilding costs nothing while it is on.raiseskill Swords 10Raises a skill by 10 levels.setkey defeated_eikthyrSets a world key, for example the one a boss kill sets.find VendorFinds a place or object by name and pings it on your map; findtp teleports you there. Useful with the seed map.All commands
Cheat commands
These work after you type devcommands (single player, or as an admin on a server).
| Command | What it does | Needs | Where |
|---|---|---|---|
addstatus | [name] adds a status effect (ex: Rested, Burning, SoftDeath, Wet, etc) | cheat | server |
adrenaline | sets adrenaline level | cheat | server |
aggravate | aggravated all nearby neutrals | cheat | server |
altbioms | list of biomes with modifiers | cheat | |
biomeinfo | info about current biome sector | cheat | |
catch | [fishname] [level] simulates catching a fish | cheat | |
cinematic | [name] play cinematic | cheat | |
cinematicsleep | [name] play cinematic on next sleep for everyone | cheat | |
clearstatus | clear any status modifiers | cheat | server |
debugmode | fly mode | cheat | server |
dpsdebug | toggle dps debug print | cheat | |
env | [env] override environment | cheat | server |
event | [name] - start event | cheat | server |
exploremap | explore entire map | cheat | server |
find | [text] [pingmax] searches loaded objects and location list matching name and pings them on the map. pingmax defaults to 1, if more will place pins on map instead | cheat | |
findbiome | marks center of all biomes on map of type or containing modifier with search string | cheat | |
findbiometp | finds the closest biome matching your search and teleports you to it | cheat | |
findtp | [text] [index=-1] [closerange=30] searches loaded objects and location list matching name and teleports you to the closest one outside of closerange. Specify an index to tp to any other in the found list, a minus value means index by closest. | cheat | |
fly | fly mode | cheat | server |
forcedelete | [radius] [*name] force remove all objects within given radius. If name is entered, only deletes items with matching names. Caution! Use at your own risk. Make backups! Radius default: 5, max: 150. | cheat | server |
ghost | cheat | server | |
god | invincible mode | cheat | server |
goto | [x,z] - teleport | cheat | server |
heal | heal to full health & stamina | cheat | server |
inventorysize | sets inventory size | cheat | server |
itemset | [name] [item level override] [keep] - spawn a premade named set, add 'keep' to not drop current items. | cheat | server |
killall | kill nearby creatures | cheat | server |
killenemies | kill nearby enemies | cheat | server |
killenemycreatures | kill nearby enemies | cheat | server |
killtame | kill nearby tame creatures. | cheat | server |
listkeys | cheat | server | |
location | [SAVE*] spawn location (CAUTION: saving permanently disabled, *unless you specify SAVE) | cheat | server |
nextseed | forces the next dungeon to a seed (CAUTION: saving permanently disabled) | cheat | server |
nocost | no build cost | cheat | server |
nospawn | toggles natural spawning of monsters | cheat | |
pevents | Subcommands: [list/start/stop/here] | cheat | server |
players | [nr] - force diffuculty scale ( 0 = reset) | cheat | server |
printcreatures | shows counts and levels of active creatures | cheat | |
printlocations | shows counts of loaded locations | cheat | |
printnetobj | [radius = 5] lists number of network objects by name surrounding the player | cheat | |
puke | empties your stomach of food | cheat | server |
raiseskill | [skill] [amount] | cheat | server |
randomevent | start a random event | cheat | server |
recall | [*name] recalls players to you, optionally that match given name | cheat | server |
removekeyplayer | [name] | cheat | server |
repairall | repairs all equipment | cheat | |
resetcharacter | reset character data | cheat | server |
resetenv | disables environment override | cheat | server |
resetkeys | [name] | cheat | server |
resetmap | reset map exploration | cheat | server |
resetskill | [skill] | cheat | server |
resetwind | cheat | server | |
respawntime | sets respawntime | cheat | |
setfuel | [amount=10] Sets all light fuel to specified amount | cheat | server |
setkeyplayer | [name] | cheat | server |
setpower | [name] sets your current guardian power and resets cooldown (ex: GP_Eikthyr, GP_TheElder, etc) | cheat | server |
skiptime | [gameseconds] skips head in seconds | cheat | server |
sleep | skips to next morning | cheat | server |
snow | [amount] adds/removes amount of snowbuild on all nearby buildpieces | cheat | server |
spawn | <prefab> [amount] [level] [radius] [p/e/i] - spawn something. (End word with a star (*) to create each object containing that word.) Add a 'p' after to try to pick up the spawned items, adding 'e' will try to use/equip, 'i' will only spawn and pickup if you don't have one in your inventory. | cheat | server |
stopevent | stop current event | cheat | server |
stopfire | Puts out all spreading fires and smoke | cheat | server |
stopsmoke | Puts out all spreading fires | cheat | server |
tame | tame all nearby tameable creatures | cheat | server |
timescale | [target] [fadetime, default: 1, max: 3] sets timescale | cheat | server |
tod | -1 OR [0-1] | cheat | server |
tombstone | [name] creates a tombstone with given name | cheat | server |
unlockcinematics | toggles unlocking all cinematics in the main menu | cheat | |
vegetation | spawn vegetation | cheat | server |
wind | [angle] [intensity] | cheat | server |
Server and admin commands
For people who run a world: moderation, world keys and world modifiers. On a dedicated server they need you to be in the admin list.
| Command | What it does | Needs | Where |
|---|---|---|---|
ban | [name/ip/userID] - ban user | free | |
banned | list banned users | free | |
genloc | regenerate all locations. | free | server |
kick | [name/ip/userID] - kick user | free | |
noportals | disables portals for server. | free | server |
removekey | [name] | free | server |
resetworldkeys | [name] Resets all world modifiers to default | free | server |
save | force saving of world and resets world save interval | free | |
setkey | [name] | free | server |
setworldmodifier | [name] [value] Sets a world modifier value | free | server |
setworldpreset | [name] Resets all world modifiers to a named preset | free | server |
unban | [ip/userID] - unban user | free | |
updatecover | force update cover refresh | free | server |
Everyday commands
No cheats needed.
| Command | What it does | Needs | Where |
|---|---|---|---|
achievements | shows player achievement info | free | server |
die | kill yourself | free | |
getstat | get specific stat | free | server |
haslocation | check if zone has location | free | |
help | Shows a list of console commands (optional: help 2 4 shows the second quarter) | free | |
nomap | disables map for this character. If used as host, will disable for all joining players from now on. | free | |
ping | ping server | free | |
pos | print current player position | free | |
removebirds | remove all birds | free | |
removedrops | remove all item-drops in area | free | |
removefish | remove all fish | free | |
resetsharedmap | removes any shared map data from cartography table | free | |
resetspawn | resets spawn location | free | |
s | shout message | free | |
say | chat message | free | |
stats | shows player stats | free | server |
time | shows current time | free | |
w | [playername] whispers a private message to a player | free | |
yesiuseddevcommandsbutiwantmyachievementsanyway | [1 = true/ 0 = false] Normally cheated items / pieces don't trigger achievements. Turn this on to disable cheat checks. | free |
Settings and bindings
Your character, the crafting lists and key bindings.
| Command | What it does | Needs | Where |
|---|---|---|---|
beard | change beard | free | |
bind | [keycode] [command and parameters] bind a key to a console command. note: may cause conflicts with game controls | free | |
filtercraft | [name] filters crafting list to contain part of text | free | |
hair | change hair | free | |
inventoryclean | throws out any items in inventory on invalid positions | free | |
model | change player model | free | |
printbinds | prints current binds | free | |
resetbinds | resets all custom binds to default dev commands | free | |
resetknownitems | reset character known items & recipes | free | |
sortcraft | [type] sorts crafting lists according to setting | free | |
tutorialreset | reset tutorial data | free | |
unbind | [keycode] clears all binds connected to keycode | free |
Performance and debugging
Information about the game and the machine it runs on.
| Command | What it does | Needs | Where |
|---|---|---|---|
clear | clear the console window | free | |
clearpopups | stops all current unlock UI messages | free | |
cr | unloads unused assets | free | |
exclusivefullscreen | changes window mode to exclusive fullscreen, or back to borderless | free | |
ffsmooth | freefly smoothness | free | |
fov | changes camera field of view | free | |
freefly | freefly photo mode | free | |
gc | shows garbage collector information | free | |
height | prints height from worldgen at current position | free | |
info | print system info | free | |
lodbias | set distance lod bias | free | |
maxfps | [FPS] sets fps limit | free | |
optterrain | optimize old terrain modifications | free | |
printseeds | print seeds of loaded dungeons | free | |
restartparty | restart playfab party network | free |
Emotes
Type the name of the emote in the chat or the console.
| Command | What it does | Needs | Where |
|---|---|---|---|
blowkiss | Plays the emote BlowKiss | free | |
bow | Plays the emote Bow | free | |
challenge | Plays the emote Challenge | free | |
cheer | Plays the emote Cheer | free | |
comehere | Plays the emote ComeHere | free | |
cower | Plays the emote Cower | free | |
cry | Plays the emote Cry | free | |
dance | Plays the emote Dance | free | |
despair | Plays the emote Despair | free | |
flex | Plays the emote Flex | free | |
headbang | Plays the emote Headbang | free | |
kneel | Plays the emote Kneel | free | |
laugh | Plays the emote Laugh | free | |
loveyou | Plays the emote LoveYou | free | |
nonono | Plays the emote NoNoNo | free | |
point | Plays the emote Point | free | |
relax | Plays the emote Relax | free | |
rest | Plays the emote Rest | free | |
roar | Plays the emote Roar | free | |
shrug | Plays the emote Shrug | free | |
sit | Plays the emote Sit | free | |
thumbsup | Plays the emote ThumbsUp | free | |
toast | Plays the emote Toast | free | |
vibe | Plays the emote Vibe | free | |
wave | Plays the emote Wave | free |
Questions
How do I open the console in Valheim?
Add -console to the launch options of the game in Steam (right-click Valheim, Properties, Launch options), start the game, load a world and press F5.
How do I turn cheats on?
Type devcommands in the console. The cheat commands then work in your world. On a server only admins can use them.
Do cheats disable achievements?
Cheated items and pieces do not count for the game's achievements. The command yesiuseddevcommandsbutiwantmyachievementsanyway exists for people who want them anyway.
What is the command to spawn an item?
Use spawn with the prefab name, for example spawn Coins 1000. The prefab names are on the item IDs page.
Can I use console commands on a dedicated server?
Yes, as an admin: add your platform ID to adminlist.txt of the server, join, and open the console with F5. Commands marked server only below also work from the server console.
To find the names to use with spawn, see the item IDs and the creature list. To find a place, use the seed map.