Valheim 1.0 — Deep North

Valheim console commands & cheats

Turn on Enable Console in the gameplay settings (or start the game with -console), then press F5 in game. Type devcommands to unlock the 85 cheat commands below. Using a cheat permanently stops achievements for that character.

  • 131 commands listed by the game’s help
  • 85 cheats after devcommands
  • F5 opens the console
  • From the game code Valheim 1.0.32

How to open the console and use cheats

  • 1. Enable the consoleSettings → Gameplay → Enable Console. The -console launch option turns it on for that session regardless of the setting.

  • 2. Press F5F5 is the default key for the console, and you can rebind it. help lists every command you can use right now.

  • 3. Type devcommandsIt toggles cheats on and off. Cheats only run where you are the server: in single player, on a world you host, or as an admin on a dedicated server, which receives the command from you.

  • Cheats and achievementsThe first cheat asks you to type confirmcheats. In the game’s words: “Using cheats will permanently disable the ability to unlock achievements for this character and this world.”

131 of 131 commands

Everyday commands

Work for anyone with the console open, no cheats needed.

CommandWhat it does (the game’s description)
bind
[keycode] [command and parameters] bind a key to a console command. note: may cause conflicts with game controls
clear
clear the console window
clearpopups
stops all current unlock UI messages
die
kill yourself
exclusivefullscreen
changes window mode to exclusive fullscreen, or back to borderless
ffsmooth
freefly smoothness
filtercraft
[name] filters crafting list to contain part of text
fov
changes camera field of view
freefly
freefly photo mode
height
prints height from worldgen at current position
help
Shows a list of console commands (optional: help 2 4 shows the second quarter)
info
print system info
inventoryclean
throws out any items in inventory on invalid positions
lodbias
set distance lod bias
maxfps
[FPS] sets fps limit
nomap
disables map for this character. If used as host, will disable for all joining players from now on.
noportals
disables portals for server.
ping
ping server
printbinds
prints current binds
printnetobj
[radius = 5] lists number of network objects by name surrounding the player
printseeds
print seeds of loaded dungeons
resetbinds
resets all custom binds to default dev commands
resetknownitems
reset character known items & recipes
resetsharedmap
removes any shared map data from cartography table
resetspawn
resets spawn location
restartparty
restart playfab party network
s
shout message
say
chat message
sortcraft
[type] sorts crafting lists according to setting
tutorialreset
reset tutorial data
unbind
[keycode] clears all binds connected to keycode
w
[playername] whispers a private message to a player
xb:version
Prints mercurial hashset used for this build

Server and world commands

Need you to be the host, or an admin on a dedicated server: the game forwards them to the server, which runs them only for players in its adminlist.txt.

CommandWhat it does (the game’s description)
achievements
shows player achievement info
ban
[name/ip/userID] - ban user
banned
list banned users
genloc
regenerate all locations.
getstat
get specific stat
kick
[name/ip/userID] - kick user
optterrain
optimize old terrain modifications
resetworldkeys
[name] Resets all world modifiers to default
save
force saving of world and resets world save interval
setworldmodifier
[name] [value] Sets a world modifier value
setworldpreset
[name] Resets all world modifiers to a named preset
stats
shows player stats
unban
[ip/userID] - unban user

Cheat commands (devcommands)

Need devcommands first, and only work where you are the host or as a server admin. The first cheat you use asks you to type confirmcheats.

CommandWhat it does (the game’s description)
addstatus
[name] adds a status effect (ex: Rested, Burning, SoftDeath, Wet, etc)
adrenaline
sets adrenaline level
aggravate
aggravated all nearby neutrals
altbioms
list of biomes with modifiers
beard
change beard shown after devcommands
biomeinfo
info about current biome sector
catch
[fishname] [level] simulates catching a fish
cinematic
[name] play cinematic
cinematicsleep
[name] play cinematic on next sleep for everyone
clearstatus
clear any status modifiers
cr
unloads unused assets shown after devcommands
debugmode
fly mode
dpsdebug
toggle dps debug print
env
[env] override environment
event
[name] - start event
exploremap
explore entire map
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
findbiome
marks center of all biomes on map of type or containing modifier with search string
findbiometp
finds the closest biome matching your search and teleports you to it
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.
fixHalfDegRotPieces
Fixes rotation of all nearby Pieces saved at up to half a degree wrong, which was a problem between 1.0.0 and 1.0.21. Use at your own risk! shown after devcommands
fly
fly mode
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.
gc
shows garbage collector information shown after devcommands
ghost
No description in the game.
god
invincible mode
goto
[x,z] - teleport
hair
change hair shown after devcommands
haslocation
check if zone has location shown after devcommands
heal
heal to full health & stamina
inventorysize
sets inventory size
itemset
[name] [item level override] [keep] - spawn a premade named set, add 'keep' to not drop current items.
killall
kill nearby creatures
killenemies
kill nearby enemies
killenemycreatures
kill nearby enemies
killtame
kill nearby tame creatures.
listkeys
No description in the game.
location
[SAVE*] spawn location (CAUTION: saving permanently disabled, *unless you specify SAVE)
model
change player model shown after devcommands
nextseed
forces the next dungeon to a seed (CAUTION: saving permanently disabled)
nocost
no build cost
nospawn
toggles natural spawning of monsters
pevents
Subcommands: [list/start/stop/here]
players
[nr] - force diffuculty scale ( 0 = reset)
pos
print current player position shown after devcommands
printcreatures
shows counts and levels of active creatures
printlocations
shows counts of loaded locations
puke
empties your stomach of food
raiseskill
[skill] [amount]
randomevent
start a random event
recall
[*name] recalls players to you, optionally that match given name
removebirds
remove all birds shown after devcommands
removedrops
remove all item-drops in area shown after devcommands
removefish
remove all fish shown after devcommands
removekey
[name] shown after devcommands
removekeyplayer
[name]
repairall
repairs all equipment
resetcharacter
reset character data
resetenv
disables environment override
resetkeys
[name]
resetmap
reset map exploration
resetskill
[skill]
resetwind
No description in the game.
respawntime
sets respawntime
setfuel
[amount=10] Sets all light fuel to specified amount
setkey
[name] shown after devcommands
setkeyplayer
[name]
setpower
[name] sets your current guardian power and resets cooldown (ex: GP_Eikthyr, GP_TheElder, etc)
skiptime
[gameseconds] skips head in seconds
sleep
skips to next morning
snow
[amount] adds/removes amount of snowbuild on all nearby buildpieces
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.
stopevent
stop current event
stopfire
Puts out all spreading fires and smoke
stopsmoke
Puts out all spreading fires
tame
tame all nearby tameable creatures
time
shows current time shown after devcommands
timescale
[target] [fadetime, default: 1, max: 5] sets timescale
tod
-1 OR [0-1]
tombstone
[name] creates a tombstone with given name
unlockcinematics
toggles unlocking all cinematics in the main menu
updatecover
force update cover refresh shown after devcommands
vegetation
spawn vegetation
wind
[angle] [intensity]
yesiuseddevcommandsbutiwantmyachievementsanyway
[1 = true/ 0 = false] Normally cheated items / pieces don't trigger achievements. Turn this on to disable cheat checks. shown after devcommands

No console commands match that filter.

Questions

How do you open the console in Valheim?

Turn on Enable Console in Settings → Gameplay, or launch the game with -console, then press F5 in game.

How do you enable cheats in Valheim?

Open the console and type devcommands. Cheats only work in single player, on a world you host, or as an admin on a dedicated server. The first cheat asks you to type confirmcheats.

Do console commands disable achievements?

Cheat commands do. Using one permanently disables achievements for that character and that world. Everyday commands such as help, fov or say do not.

What is the god mode command?

god, after devcommands. It is listed with the other cheats above.

How do you use cheats on a dedicated server?

Your player ID must be in the server’s adminlist.txt. The game forwards cheat and server commands to the server, which runs them only for admins.

Every command, description and flag is read from the console code (Terminal) of game build 27032906 (assembly 9d03ae0e…); the console key from the input bindings. Hidden commands the game’s help never lists, and the one-per-emote commands, are left out.

Sources & credits · Game data 1.0.32 · Updated

Report an issue with this page

This page, its data release and version are included automatically. No account needed.