Valheim console commands and cheats
131 commands, 70 of them cheats, plus 25 emotes.
Valheim has a built-in console. You turn it on in the settings or with the -console launch option, then press F5 in game. Some commands work straight away, like help for the list and pos for your position.
The cheats, also called dev commands, need devcommands first. That unlocks god, ghost, fly, goto, spawn, tod, killall, exploremap, raiseskill and the rest. They only work in a world you host or, on a dedicated server, for admins. Using one stops that character and world from earning achievements.
To spawn an item or creature you need its prefab name, which isn't always its in-game name. The Valheim spawn IDs list has every item and creature code. To teleport with goto, the seed map copies the command for any spot in your world.
Open the console
- Turn on Settings › Gameplay › Enable Console, or start the game with the
-consolelaunch option (it overrides the setting). - In game, press F5. On a gamepad: LT + LB + Start.
- Type
helpto list the commands you can use right now.
Commands that aren't cheats also work in chat without the console: type / and the command, e.g. /sit.
Cheats
devcommandsturns cheats on and off. They only work in a world you host: single player, or a game you started that others joined.- The first cheat a character uses asks you to type
confirmcheats. After that, achievements can't be unlocked for that character or that world. - Dedicated servers: players listed in the server's
adminlist.txtcan rundevcommandsand the commands marked Admin; they run on the server. Other cheats don't work there.
All commands
- Cheats
- needs
devcommands - Host
- only on the computer running the world
- Admin
- a dedicated server's admins can run it
| Command | Arguments | What it does | Needs |
|---|---|---|---|
achievements | none | Shows player achievement info. | Host |
addstatus | [name] | Adds a status effect by its ID, e.g. Rested, Burning, SoftDeath, Wet. | Cheats |
adrenaline | [amount] | Sets your adrenaline level (100 if no number is given). | Cheats |
aggravate | none | Makes neutral creatures within 20 m hostile. | Cheats |
altbioms | none | List of biomes with modifiers. | Cheats |
ban | [name/ip/userID] | Ban user. | Admin |
banned | none | List banned users. | Admin |
beard | [name] | Changes the beard. | — |
bind | [keycode] [command and parameters] | Bind a key to a console command. note: may cause conflicts with game controls. | — |
biomeinfo | none | Info about current biome sector. | Cheats |
catch | [fishname] [level] | Simulates catching a fish (level 4 at most). Names: Spawn IDs. Values: | Cheats |
cinematic | [name] | Play cinematic. | Cheats |
cinematicsleep | [name] | Play cinematic on next sleep for everyone. | Cheats |
clear | none | Clear the console window. | — |
clearpopups | none | Stops all current unlock UI messages. | — |
clearstatus | none | Clear any status modifiers. | Cheats |
cr | none | Unloads unused assets. | — |
debugmode | none | Toggles debug mode, which adds keys: Z fly, B no build cost, K kill enemies, L remove item drops, Left Ctrl + middle-click on the map to teleport there. | Cheats |
devcommands | none | Enables cheats. | Admin |
die | none | Kill yourself. | — |
dpsdebug | none | Toggle dps debug print. | Cheats |
env | [env] | Override environment. | Cheats |
event | [name] | Starts a raid event. | Cheats |
exclusivefullscreen | none | Changes window mode to exclusive fullscreen, or back to borderless. | — |
exploremap | none | Explore entire map. | Cheats |
ffsmooth | none | Freefly smoothness. | — |
filtercraft | [name] | Filters crafting list to contain part of text. | — |
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. | Cheats |
findbiome | [text] | Marks the centre of every biome sector on the map whose biome or variation matches the text. | Cheats |
findbiometp | [text] | Teleports you to the closest biome sector matching the text. | Cheats |
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. | Cheats |
fly | [speed] | Toggles fly mode; a number sets the fly speed. | Cheats |
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. | Cheats |
fov | [degrees] | Changes the camera field of view; without a number it prints it. | — |
freefly | none | Freefly photo mode. | — |
gc | none | Shows garbage collector information. | — |
genloc | none | Regenerate all locations. | HostAdmin |
getstat | [stat] | Prints one of your player stats.207 values
| Host |
ghost | [on/off] | Ghost mode: creatures don't notice you. Without on/off it toggles. | Cheats |
god | [on/off] | Invincible mode. Without on/off it toggles. | Cheats |
goto | [x,z] | Teleport. | Cheats |
hair | [name] | Changes the hair. | — |
haslocation | none | Check if zone has location. | — |
heal | none | Heal to full health & stamina. | Cheats |
height | none | Prints height from worldgen at current position. | — |
help | none | Shows a list of console commands (optional: help 2 4 shows the second quarter) | — |
info | none | Print system info. | — |
inventoryclean | none | Throws out any items in inventory on invalid positions. | — |
inventorysize | [rows] | Sets the number of inventory rows (0-9); items that no longer fit drop. Without a number it prints the current size. | Cheats |
itemset | [name] [item level override] [keep] | Spawn a premade named set, add 'keep' to not drop current items. | Cheats |
kick | [name/ip/userID] | Kick user. | Admin |
killall | none | Kills nearby creatures, tamed ones too, and destroys spawners. | Cheats |
killenemies | none | Kills nearby enemies and destroys spawners. | Cheats |
killenemycreatures | none | Kills nearby enemies. | Cheats |
killtame | none | Kill nearby tame creatures. | Cheats |
listkeys | none | Lists the world's global keys and the server option keys. | CheatsAdmin |
location | [name] [SAVE] | Spawns a location 10 m in front of you. World saving is then off until you restart, unless you add SAVE. | Cheats |
lodbias | [bias] | Sets the distance LOD bias; without a number it prints it. | — |
maxfps | [FPS] | Sets fps limit. | — |
model | [0/1] | Changes the player model (0 male, 1 female). | — |
nextseed | [seed] | Forces the next dungeon to a seed (saving is then disabled). | Cheats |
nocost | [on/off] | No build cost. Without on/off it toggles. | Cheats |
nomap | none | Disables map for this character. If used as host, will disable for all joining players from now on. | — |
noportals | none | Disables portals for server. | — |
nospawn | [on/off] | Toggles natural spawning of monsters. | Cheats |
optterrain | none | Optimize old terrain modifications. | — |
pevents | [list/start/stop/here] | Lists, starts or stops player events. | Cheats |
ping | none | Ping server. | — |
players | [count] | Forces difficulty scaling as if this many players were nearby (0 resets). | CheatsAdmin |
pos | none | Print current player position. | — |
printbinds | none | Prints current binds. | — |
printcreatures | none | Shows counts and levels of active creatures. | Cheats |
printlocations | none | Shows counts of loaded locations. | Cheats |
printnetobj | [radius = 5] | Lists number of network objects by name surrounding the player. | Cheats |
printseeds | none | Print seeds of loaded dungeons. | — |
puke | none | Empties your stomach of food. | Cheats |
raiseskill | [skill] [amount] | Raises a skill by the amount; All raises every skill. Values: | Cheats |
randomevent | none | Starts a random raid event. | Cheats |
recall | [*name] | Recalls players to you, optionally that match given name. | Cheats |
removebirds | none | Remove all birds. | — |
removedrops | none | Remove all item-drops in area. | — |
removefish | none | Remove all fish. | — |
removekey | [key] | Removes a global key. | HostAdmin |
removekeyplayer | [key] | Removes a player key. | Cheats |
repairall | none | Repairs all equipment. | Cheats |
resetbinds | none | Resets all custom binds to default dev commands. | — |
resetcharacter | none | Reset character data. | Cheats |
resetenv | none | Disables environment override. | Cheats |
resetkeys | none | Clears all global keys and your player keys. | CheatsAdmin |
resetknownitems | none | Reset character known items & recipes. | — |
resetmap | none | Reset map exploration. | Cheats |
resetsharedmap | none | Removes any shared map data from cartography table. | — |
resetskill | [skill] | Resets a skill; All resets every skill. Values: | Cheats |
resetspawn | none | Resets spawn location. | — |
resetwind | none | Ends the wind override. | Cheats |
resetworldkeys | none | Resets all world modifiers to default. | HostAdmin |
respawntime | [seconds] | Sets the respawn time. | Cheats |
restartparty | none | Restart playfab party network. | Admin |
s | [text] | Shout message. | — |
save | none | Force saving of world and resets world save interval. | Admin |
say | [text] | Chat message. | — |
setfuel | [amount=10] | Sets all light fuel to specified amount. | Cheats |
setkey | [key] | Sets a global key. A key or value the World Modifiers screen can't set counts as a cheat.53 values
| HostAdmin |
setkeyplayer | [key] | Adds a player key. Values: | Cheats |
setpower | [name] | Sets your Forsaken power and resets its cooldown, e.g. GP_Eikthyr, GP_TheElder. | Cheats |
setworldmodifier | [name] [value] | Sets a world modifier value. Values: | HostAdmin |
setworldpreset | [name] | Resets all world modifiers to a named preset. Values: | HostAdmin |
skiptime | [seconds] | Skips ahead in game time (240 seconds if no number is given). | CheatsAdmin |
sleep | none | Skips to next morning. | CheatsAdmin |
snow | [amount] | Adds/removes amount of snowbuild on all nearby buildpieces. | Cheats |
sortcraft | [type] | Sorts crafting lists according to setting. Values: | — |
spawn | [name] [amount] [level] [radius] [p/e/i] | Spawns a prefab. End the name with * to spawn every prefab containing it. p picks the spawned items up, e uses or equips them, i only spawns and picks up an item you don't already have. Names: Spawn IDs. | Cheats |
stats | none | Shows player stats. | Host |
stopevent | none | Stops the current raid event. | Cheats |
stopfire | none | Puts out all spreading fires and smoke. | Cheats |
stopsmoke | none | Puts out all spreading fires. | Cheats |
tame | none | Tame all nearby tameable creatures. | Cheats |
time | none | Shows current time. | — |
timescale | [target] [fadetime, default: 1, max: 3] | Sets timescale. | Cheats |
tod | [0-1] or -1 | Sets the time of day (0 to 1); -1 returns to the normal clock. | Cheats |
tombstone | [name] | Creates a tombstone with given name. | Cheats |
tutorialreset | none | Reset tutorial data. | — |
unban | [ip/userID] | Unban user. | Admin |
unbind | [keycode] | Clears all binds connected to keycode. | — |
unlockcinematics | none | Toggles unlocking all cinematics in the main menu. | Cheats |
updatecover | none | Force update cover refresh. | Host |
vegetation | [name] | Spawns vegetation. | Cheats |
w | [playername] | Whispers a private message to a player. | — |
wind | [angle] [intensity] | Overrides the wind direction and strength. | Cheats |
xb:version | none | Prints mercurial hashset used for this build. | — |
yesiuseddevcommandsbutiwantmyachievementsanyway | [1 = true/ 0 = false] | Normally cheated items / pieces don't trigger achievements. Turn this on to disable cheat checks. | — |
Emotes
Each emote is a command: /wave in chat, or wave in the console.
wavesitchallengecheernononothumbsuppointblowkissbowcowercrydespairflexcomehereheadbangkneellaughroarshrugdancerelaxtoastrestvibeloveyou