136 commands · Valheim 1.0.21
Console commands
Press F5 to open the console. Cheats work after devcommands — in multiplayer only for the host; on a dedicated server admins get the few the server runs for them. Descriptions are the game's own help strings, so some are terse. Spawn codes: items and creatures.
The console is off until you turn on Settings → Gameplay → “Enable Console” (it stays on), or start the game with the launch option -console (on for that session). The game's own note: Enables opening the in-game console, used for accessing special debugging commands and features. The -console command line argument overrides this setting.
Difficulty in a running world: world modifiers; server launch arguments, admins and bans: dedicated server.
Already on a VPN? Check that it works at whoseesmyip.com →
Cheats (71)
| Command | What the game says | Where |
|---|---|---|
addstatus | [name] adds a status effect (ex: Rested, Burning, SoftDeath, Wet, etc) | admin |
adrenaline | sets adrenaline level | admin |
aggravate | aggravated all nearby neutrals | admin |
altbioms | list of biomes with modifiers | anywhere |
biomeinfo | info about current biome sector | anywhere |
catch | [fishname] [level] simulates catching a fish | anywhere |
cinematic | [name] play cinematic | anywhere |
cinematicsleep | [name] play cinematic on next sleep for everyone | anywhere |
clearstatus | clear any status modifiers | admin |
confirmcheats | no help text | server / host, remote |
debugmode | fly mode | server / host |
dpsdebug | toggle dps debug print | anywhere |
env | [env] override environment | server / host |
event | [name] - start event | server / host |
exploremap | explore entire map | server / 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 instead | anywhere |
findbiome | marks center of all biomes on map of type or containing modifier with search string | anywhere |
findbiometp | finds the closest biome matching your search and teleports you to it | anywhere |
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 |
fly | fly mode | server / 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 |
ghost | no help text | admin |
god | invincible mode | admin |
goto | [x,z] - teleport | admin |
heal | heal to full health & stamina | admin |
inventorysize | sets inventory size | server / host |
itemset | [name] [item level override] [keep] - spawn a premade named set, add 'keep' to not drop current items. | admin |
killall | kill nearby creatures | admin |
killenemies | kill nearby enemies | admin |
killenemycreatures | kill nearby enemies | admin |
killtame | kill nearby tame creatures. | admin |
listkeys | no help text | server / host, remote |
location | [SAVE*] spawn location (CAUTION: saving permanently disabled, *unless you specify SAVE) | admin |
nextseed | forces the next dungeon to a seed (CAUTION: saving permanently disabled) | admin |
nocost | no build cost | server / host |
nospawn | toggles natural spawning of monsters | anywhere |
pevents | Subcommands: [list/start/stop/here] | admin |
players | [nr] - force diffuculty scale ( 0 = reset) | server / host, remote |
printcreatures | shows counts and levels of active creatures | anywhere |
printlocations | shows counts of loaded locations | anywhere |
printnetobj | [radius = 5] lists number of network objects by name surrounding the player | anywhere |
puke | empties your stomach of food | admin |
raiseskill | [skill] [amount] | server / host |
randomevent | start a random event | server / host |
recall | [*name] recalls players to you, optionally that match given name | admin |
removekeyplayer | [name] | server / host |
repairall | repairs all equipment | anywhere |
resetcharacter | reset character data | server / host |
resetenv | disables environment override | server / host |
resetkeys | [name] | server / host, remote |
resetmap | reset map exploration | server / host |
resetskill | [skill] | server / host |
resetwind | no help text | server / host |
respawntime | sets respawntime | anywhere |
setfuel | [amount=10] Sets all light fuel to specified amount | admin |
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 seconds | server / host, remote |
sleep | skips to next morning | server / host, remote |
snow | [amount] adds/removes amount of snowbuild on all nearby buildpieces | server / 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 |
stopevent | stop current event | server / host |
stopfire | Puts out all spreading fires and smoke | admin |
stopsmoke | Puts out all spreading fires | admin |
tame | tame all nearby tameable creatures | admin |
timescale | [target] [fadetime, default: 1, max: 5] sets timescale | server / host |
tod | -1 OR [0-1] | server / host |
tombstone | [name] creates a tombstone with given name | admin |
unlockcinematics | toggles unlocking all cinematics in the main menu | anywhere |
vegetation | spawn vegetation | admin |
wind | [angle] [intensity] | server / host |
Everyday commands (45)
| Command | What the game says | Where |
|---|---|---|
achievements | shows player achievement info | server / host |
ban | [name/ip/userID] - ban user | multiplayer |
banned | list banned users | multiplayer |
bind | [keycode] [command and parameters] bind a key to a console command. note: may cause conflicts with game controls | anywhere |
clear | clear the console window | anywhere |
clearpopups | stops all current unlock UI messages | anywhere |
die | kill yourself | anywhere |
exclusivefullscreen | changes window mode to exclusive fullscreen, or back to borderless | anywhere |
ffsmooth | freefly smoothness | anywhere |
filtercraft | [name] filters crafting list to contain part of text | anywhere |
fov | changes camera field of view | anywhere |
freefly | freefly photo mode | anywhere |
genloc | regenerate all locations. | server / host, remote |
getstat | get specific stat | server / host |
height | prints height from worldgen at current position | anywhere |
help | Shows a list of console commands (optional: help 2 4 shows the second quarter) | anywhere |
info | print system info | anywhere |
inventoryclean | throws out any items in inventory on invalid positions | anywhere |
kick | [name/ip/userID] - kick user | multiplayer |
lodbias | set distance lod bias | anywhere |
maxfps | [FPS] sets fps limit | anywhere |
nomap | disables map for this character. If used as host, will disable for all joining players from now on. | anywhere |
noportals | disables portals for server. | admin |
optterrain | optimize old terrain modifications | multiplayer |
ping | ping server | anywhere |
printbinds | prints current binds | anywhere |
printseeds | print seeds of loaded dungeons | anywhere |
resetbinds | resets all custom binds to default dev commands | anywhere |
resetknownitems | reset character known items & recipes | anywhere |
resetsharedmap | removes any shared map data from cartography table | anywhere |
resetspawn | resets spawn location | anywhere |
resetworldkeys | [name] Resets all world modifiers to default | server / host, remote |
restartparty | restart playfab party network | remote |
s | shout message | anywhere |
save | force saving of world and resets world save interval | multiplayer |
say | chat message | anywhere |
setworldmodifier | [name] [value] Sets a world modifier value | server / host, remote |
setworldpreset | [name] Resets all world modifiers to a named preset | server / host, remote |
sortcraft | [type] sorts crafting lists according to setting | anywhere |
stats | shows player stats | server / host |
tutorialreset | reset tutorial data | anywhere |
unban | [ip/userID] - unban user | multiplayer |
unbind | [keycode] clears all binds connected to keycode | anywhere |
w | [playername] whispers a private message to a player | anywhere |
xb:version | Prints mercurial hashset used for this build | anywhere |
Shown after devcommands (15)
| Command | What the game says | Where |
|---|---|---|
beard | change beard | anywhere |
cr | unloads unused assets | anywhere |
gc | shows garbage collector information | anywhere |
hair | change hair | anywhere |
haslocation | check if zone has location | anywhere |
model | change player model | anywhere |
pos | print current player position | anywhere |
removebirds | remove all birds | anywhere |
removedrops | remove all item-drops in area | anywhere |
removefish | remove all fish | anywhere |
removekey | [name] | server / host, remote |
setkey | [name] | server / host, remote |
time | shows current time | anywhere |
updatecover | force update cover refresh | server / 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)
| Command | What the game says | Where |
|---|---|---|
devcommands | enables cheats | anywhere |
hidebetatext | no help text | anywhere |
resetbuildui | Resets build ui save data that stores recent and favorites | anywhere |
resetplayerprefs | Resets any saved settings and variables (not the save game) | anywhere |
test | [key] [value] set test string, with optional value. set empty existing key to remove | anywhere |
Source: every ConsoleCommand registered in assembly_valheim.dll of Valheim 1.0.21, with its flags.
