Valheim DatabaseValheim 1.0.16 · read from the game files · unofficial

136 commands · Valheim 1.0.16

Console commands

Press F5 to open the console. Cheats work after devcommands (in multiplayer only for the host or an admin). Descriptions are the game's own help strings, so some are terse. Spawn codes: items and creatures.

On Steam the console needs the launch option -console.

Cheats (71)

CommandWhat the game saysWhere
addstatus[name] adds a status effect (ex: Rested, Burning, SoftDeath, Wet, etc)admin
adrenalinesets adrenaline leveladmin
aggravateaggravated all nearby neutralsadmin
altbiomslist of biomes with modifiersanywhere
biomeinfoinfo about current biome sectoranywhere
catch[fishname] [level] simulates catching a fishanywhere
cinematic[name] play cinematicanywhere
cinematicsleep[name] play cinematic on next sleep for everyoneanywhere
clearstatusclear any status modifiersadmin
confirmcheatsno help textserver / host, remote
debugmodefly modeserver / host
dpsdebugtoggle dps debug printanywhere
env[env] override environmentserver / host
event[name] - start eventserver / host
exploremapexplore entire mapserver / host
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 insteadanywhere
findbiomemarks center of all biomes on map of type or containing modifier with search stringanywhere
findbiometpfinds the closest biome matching your search and teleports you to itanywhere
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.anywhere
flyfly modeserver / host
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.admin
ghostno help textadmin
godinvincible modeadmin
goto[x,z] - teleportadmin
healheal to full health & staminaadmin
inventorysizesets inventory sizeserver / host
itemset[name] [item level override] [keep] - spawn a premade named set, add 'keep' to not drop current items.admin
killallkill nearby creaturesadmin
killenemieskill nearby enemiesadmin
killenemycreatureskill nearby enemiesadmin
killtamekill nearby tame creatures.admin
listkeysno help textserver / host, remote
location[SAVE*] spawn location (CAUTION: saving permanently disabled, *unless you specify SAVE)admin
nextseedforces the next dungeon to a seed (CAUTION: saving permanently disabled)admin
nocostno build costserver / host
nospawntoggles natural spawning of monstersanywhere
peventsSubcommands: [list/start/stop/here]admin
players[nr] - force diffuculty scale ( 0 = reset)server / host, remote
printcreaturesshows counts and levels of active creaturesanywhere
printlocationsshows counts of loaded locationsanywhere
printnetobj[radius = 5] lists number of network objects by name surrounding the playeranywhere
pukeempties your stomach of foodadmin
raiseskill[skill] [amount]server / host
randomeventstart a random eventserver / host
recall[*name] recalls players to you, optionally that match given nameadmin
removekeyplayer[name]server / host
repairallrepairs all equipmentanywhere
resetcharacterreset character dataserver / host
resetenvdisables environment overrideserver / host
resetkeys[name]server / host, remote
resetmapreset map explorationserver / host
resetskill[skill]server / host
resetwindno help textserver / host
respawntimesets respawntimeanywhere
setfuel[amount=10] Sets all light fuel to specified amountadmin
setkeyplayer[name]server / host
setpower[name] sets your current guardian power and resets cooldown (ex: GP_Eikthyr, GP_TheElder, etc)admin
skiptime[gameseconds] skips head in secondsserver / host, remote
sleepskips to next morningserver / host, remote
snow[amount] adds/removes amount of snowbuild on all nearby buildpiecesserver / host
spawn[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.admin
stopeventstop current eventserver / host
stopfirePuts out all spreading fires and smokeadmin
stopsmokePuts out all spreading firesadmin
tametame all nearby tameable creaturesadmin
timescale[target] [fadetime, default: 1, max: 3] sets timescaleserver / host
tod-1 OR [0-1]server / host
tombstone[name] creates a tombstone with given nameadmin
unlockcinematicstoggles unlocking all cinematics in the main menuanywhere
vegetationspawn vegetationadmin
wind[angle] [intensity]server / host

Everyday commands (45)

CommandWhat the game saysWhere
achievementsshows player achievement infoserver / host
ban[name/ip/userID] - ban usermultiplayer
bannedlist banned usersmultiplayer
bind[keycode] [command and parameters] bind a key to a console command. note: may cause conflicts with game controlsanywhere
clearclear the console windowanywhere
clearpopupsstops all current unlock UI messagesanywhere
diekill yourselfanywhere
exclusivefullscreenchanges window mode to exclusive fullscreen, or back to borderlessanywhere
ffsmoothfreefly smoothnessanywhere
filtercraft[name] filters crafting list to contain part of textanywhere
fovchanges camera field of viewanywhere
freeflyfreefly photo modeanywhere
genlocregenerate all locations.server / host, remote
getstatget specific statserver / host
heightprints height from worldgen at current positionanywhere
helpShows a list of console commands (optional: help 2 4 shows the second quarter)anywhere
infoprint system infoanywhere
inventorycleanthrows out any items in inventory on invalid positionsanywhere
kick[name/ip/userID] - kick usermultiplayer
lodbiasset distance lod biasanywhere
maxfps[FPS] sets fps limitanywhere
nomapdisables map for this character. If used as host, will disable for all joining players from now on.anywhere
noportalsdisables portals for server.admin
optterrainoptimize old terrain modificationsmultiplayer
pingping serveranywhere
printbindsprints current bindsanywhere
printseedsprint seeds of loaded dungeonsanywhere
resetbindsresets all custom binds to default dev commandsanywhere
resetknownitemsreset character known items & recipesanywhere
resetsharedmapremoves any shared map data from cartography tableanywhere
resetspawnresets spawn locationanywhere
resetworldkeys[name] Resets all world modifiers to defaultserver / host, remote
restartpartyrestart playfab party networkremote
sshout messageanywhere
saveforce saving of world and resets world save intervalmultiplayer
saychat messageanywhere
setworldmodifier[name] [value] Sets a world modifier valueserver / host, remote
setworldpreset[name] Resets all world modifiers to a named presetserver / host, remote
sortcraft[type] sorts crafting lists according to settinganywhere
statsshows player statsserver / host
tutorialresetreset tutorial dataanywhere
unban[ip/userID] - unban usermultiplayer
unbind[keycode] clears all binds connected to keycodeanywhere
w[playername] whispers a private message to a playeranywhere
xb:versionPrints mercurial hashset used for this buildanywhere

Shown after devcommands (15)

CommandWhat the game saysWhere
beardchange beardanywhere
crunloads unused assetsanywhere
gcshows garbage collector informationanywhere
hairchange hairanywhere
haslocationcheck if zone has locationanywhere
modelchange player modelanywhere
posprint current player positionanywhere
removebirdsremove all birdsanywhere
removedropsremove all item-drops in areaanywhere
removefishremove all fishanywhere
removekey[name]server / host, remote
setkey[name]server / host, remote
timeshows current timeanywhere
updatecoverforce update cover refreshserver / host
yesiuseddevcommandsbutiwantmyachievementsanyway[1 = true/ 0 = false] Normally cheated items / pieces don't trigger achievements. Turn this on to disable cheat checks.anywhere

Hidden from help (5)

CommandWhat the game saysWhere
devcommandsenables cheatsanywhere
hidebetatextno help textanywhere
resetbuilduiResets build ui save data that stores recent and favoritesanywhere
resetplayerprefsResets any saved settings and variables (not the save game)anywhere
test[key] [value] set test string, with optional value. set empty existing key to removeanywhere

Source: every ConsoleCommand registered in assembly_valheim.dll of Valheim 1.0.16, with its flags.