Valheim console commands

All 154 console commands of Valheim 1.0.17, read from the game itself: what each one does and whether it needs cheats. Click a command to copy it.

How to open the console and turn on cheats

  1. In Steam, right-click Valheim, choose Properties and type -console in the launch options.
  2. Start the game, load a world and press F5. The console opens at the top of the screen.
  3. Type devcommands and press Enter. The cheat commands now work. Type it again to switch them off.
On a dedicated server the cheat commands are for admins: put your platform ID in 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).

CommandWhat it doesNeedsWhere
addstatus[name] adds a status effect (ex: Rested, Burning, SoftDeath, Wet, etc)cheatserver
adrenalinesets adrenaline levelcheatserver
aggravateaggravated all nearby neutralscheatserver
altbiomslist of biomes with modifierscheat
biomeinfoinfo about current biome sectorcheat
catch[fishname] [level] simulates catching a fishcheat
cinematic[name] play cinematiccheat
cinematicsleep[name] play cinematic on next sleep for everyonecheat
clearstatusclear any status modifierscheatserver
debugmodefly modecheatserver
dpsdebugtoggle dps debug printcheat
env[env] override environmentcheatserver
event[name] - start eventcheatserver
exploremapexplore entire mapcheatserver
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 insteadcheat
findbiomemarks center of all biomes on map of type or containing modifier with search stringcheat
findbiometpfinds the closest biome matching your search and teleports you to itcheat
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
flyfly modecheatserver
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.cheatserver
ghostcheatserver
godinvincible modecheatserver
goto[x,z] - teleportcheatserver
healheal to full health & staminacheatserver
inventorysizesets inventory sizecheatserver
itemset[name] [item level override] [keep] - spawn a premade named set, add 'keep' to not drop current items.cheatserver
killallkill nearby creaturescheatserver
killenemieskill nearby enemiescheatserver
killenemycreatureskill nearby enemiescheatserver
killtamekill nearby tame creatures.cheatserver
listkeyscheatserver
location[SAVE*] spawn location (CAUTION: saving permanently disabled, *unless you specify SAVE)cheatserver
nextseedforces the next dungeon to a seed (CAUTION: saving permanently disabled)cheatserver
nocostno build costcheatserver
nospawntoggles natural spawning of monsterscheat
peventsSubcommands: [list/start/stop/here]cheatserver
players[nr] - force diffuculty scale ( 0 = reset)cheatserver
printcreaturesshows counts and levels of active creaturescheat
printlocationsshows counts of loaded locationscheat
printnetobj[radius = 5] lists number of network objects by name surrounding the playercheat
pukeempties your stomach of foodcheatserver
raiseskill[skill] [amount]cheatserver
randomeventstart a random eventcheatserver
recall[*name] recalls players to you, optionally that match given namecheatserver
removekeyplayer[name]cheatserver
repairallrepairs all equipmentcheat
resetcharacterreset character datacheatserver
resetenvdisables environment overridecheatserver
resetkeys[name]cheatserver
resetmapreset map explorationcheatserver
resetskill[skill]cheatserver
resetwindcheatserver
respawntimesets respawntimecheat
setfuel[amount=10] Sets all light fuel to specified amountcheatserver
setkeyplayer[name]cheatserver
setpower[name] sets your current guardian power and resets cooldown (ex: GP_Eikthyr, GP_TheElder, etc)cheatserver
skiptime[gameseconds] skips head in secondscheatserver
sleepskips to next morningcheatserver
snow[amount] adds/removes amount of snowbuild on all nearby buildpiecescheatserver
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.cheatserver
stopeventstop current eventcheatserver
stopfirePuts out all spreading fires and smokecheatserver
stopsmokePuts out all spreading firescheatserver
tametame all nearby tameable creaturescheatserver
timescale[target] [fadetime, default: 1, max: 3] sets timescalecheatserver
tod-1 OR [0-1]cheatserver
tombstone[name] creates a tombstone with given namecheatserver
unlockcinematicstoggles unlocking all cinematics in the main menucheat
vegetationspawn vegetationcheatserver
wind[angle] [intensity]cheatserver

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.

CommandWhat it doesNeedsWhere
ban[name/ip/userID] - ban userfree
bannedlist banned usersfree
genlocregenerate all locations.freeserver
kick[name/ip/userID] - kick userfree
noportalsdisables portals for server.freeserver
removekey[name]freeserver
resetworldkeys[name] Resets all world modifiers to defaultfreeserver
saveforce saving of world and resets world save intervalfree
setkey[name]freeserver
setworldmodifier[name] [value] Sets a world modifier valuefreeserver
setworldpreset[name] Resets all world modifiers to a named presetfreeserver
unban[ip/userID] - unban userfree
updatecoverforce update cover refreshfreeserver

Everyday commands

No cheats needed.

CommandWhat it doesNeedsWhere
achievementsshows player achievement infofreeserver
diekill yourselffree
getstatget specific statfreeserver
haslocationcheck if zone has locationfree
helpShows a list of console commands (optional: help 2 4 shows the second quarter)free
nomapdisables map for this character. If used as host, will disable for all joining players from now on.free
pingping serverfree
posprint current player positionfree
removebirdsremove all birdsfree
removedropsremove all item-drops in areafree
removefishremove all fishfree
resetsharedmapremoves any shared map data from cartography tablefree
resetspawnresets spawn locationfree
sshout messagefree
saychat messagefree
statsshows player statsfreeserver
timeshows current timefree
w[playername] whispers a private message to a playerfree
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.

CommandWhat it doesNeedsWhere
beardchange beardfree
bind[keycode] [command and parameters] bind a key to a console command. note: may cause conflicts with game controlsfree
filtercraft[name] filters crafting list to contain part of textfree
hairchange hairfree
inventorycleanthrows out any items in inventory on invalid positionsfree
modelchange player modelfree
printbindsprints current bindsfree
resetbindsresets all custom binds to default dev commandsfree
resetknownitemsreset character known items & recipesfree
sortcraft[type] sorts crafting lists according to settingfree
tutorialresetreset tutorial datafree
unbind[keycode] clears all binds connected to keycodefree

Performance and debugging

Information about the game and the machine it runs on.

CommandWhat it doesNeedsWhere
clearclear the console windowfree
clearpopupsstops all current unlock UI messagesfree
crunloads unused assetsfree
exclusivefullscreenchanges window mode to exclusive fullscreen, or back to borderlessfree
ffsmoothfreefly smoothnessfree
fovchanges camera field of viewfree
freeflyfreefly photo modefree
gcshows garbage collector informationfree
heightprints height from worldgen at current positionfree
infoprint system infofree
lodbiasset distance lod biasfree
maxfps[FPS] sets fps limitfree
optterrainoptimize old terrain modificationsfree
printseedsprint seeds of loaded dungeonsfree
restartpartyrestart playfab party networkfree

Emotes

Type the name of the emote in the chat or the console.

CommandWhat it doesNeedsWhere
blowkissPlays the emote BlowKissfree
bowPlays the emote Bowfree
challengePlays the emote Challengefree
cheerPlays the emote Cheerfree
comeherePlays the emote ComeHerefree
cowerPlays the emote Cowerfree
cryPlays the emote Cryfree
dancePlays the emote Dancefree
despairPlays the emote Despairfree
flexPlays the emote Flexfree
headbangPlays the emote Headbangfree
kneelPlays the emote Kneelfree
laughPlays the emote Laughfree
loveyouPlays the emote LoveYoufree
nononoPlays the emote NoNoNofree
pointPlays the emote Pointfree
relaxPlays the emote Relaxfree
restPlays the emote Restfree
roarPlays the emote Roarfree
shrugPlays the emote Shrugfree
sitPlays the emote Sitfree
thumbsupPlays the emote ThumbsUpfree
toastPlays the emote Toastfree
vibePlays the emote Vibefree
wavePlays the emote Wavefree

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.