Valheim Console Commands
Every Valheim console command and cheat, searchable and ready to copy: admin commands for your server kept apart from the cheats that need devcommands.
Using the commands on your server
- Add your Steam ID (Steam_7656…) to the server admin list. Valheim reloads adminlist.txt without a restart.
- Launch Valheim with the -console launch option (Steam: right-click Valheim, Properties, Launch Options).
- Press F5 in game to open the console and type the command. Unlock cheats with devcommands first.
The server console in the panel does not accept Valheim commands: the Valheim dedicated server reads no input. Type commands in game with F5 instead.
130 of 130 commands
Server and admin 12
These commands act on the server. On a rented server you need an entry in the admin list.
-
kick [name/ip/userID]Kicks a player from the server by name, IP or user ID.
runs on the server
-
ban [name/ip/userID]Bans a player by name, IP or user ID.
runs on the server
-
unban [ip/userID]Lifts a ban by IP or user ID.
runs on the server
-
bannedLists the banned players.
runs on the server
-
saveSaves the world now and restarts the save interval.
runs on the server
-
optterrainOptimizes old terrain modifications in the world.
runs on the server
-
genlocRegenerates all locations in the world (dungeons, altars, traders).
runs on the server
-
resetworldkeys [name]Resets all world modifiers to default.
runs on the server
-
setworldpreset [name]Sets the world modifiers to a named preset.
runs on the server
-
setworldmodifier [name] [value]Sets a single world modifier to a value.
runs on the server
-
restartpartyRestarts the PlayFab party network (crossplay).
runs on the server
-
noportalsTurns portals off on the server.
admin only
Cheats (devcommands) 85
Only available after devcommands. On a server, the game accepts devcommands from admins only.
-
dpsdebugToggles a damage-per-second readout for testing.
devcommands
-
gcShows garbage collector information.
devcommands
-
crUnloads unused assets from memory.
devcommands
-
players [nr]Sets the difficulty as if that many players were present. 0 resets it.
devcommands runs on the server
-
setkey [name]Sets a global world key, such as a defeated boss.
devcommands runs on the server
-
removekey [name]Removes a global world key.
devcommands runs on the server
-
resetkeys [name]Resets all global world keys.
devcommands runs on the server
-
setkeyplayer [name]Sets a key for your character only.
devcommands
-
removekeyplayer [name]Removes a key from your character.
devcommands
-
listkeysLists the keys set on the world and your character.
devcommands runs on the server
-
debugmodeTurns on debug mode, which includes flying.
devcommands
-
flyToggles flying.
devcommands
-
nocostBuild and craft without material costs.
devcommands
-
raiseskill [skill] [amount]Raises a skill by an amount.
devcommands
-
resetskill [skill]Resets a skill.
devcommands
-
sleepSkips the night to the next morning.
devcommands runs on the server
-
yesiuseddevcommandsbutiwantmyachievementsanyway [1 = true/ 0 = false]With 1, cheated items and pieces trigger achievements too; with 0 they do not.
devcommands
-
skiptime [gameseconds]Skips game time ahead by that many seconds.
devcommands runs on the server
-
timeShows the current game time.
devcommands
-
resetcharacterResets your character data.
devcommands
-
timescale [target] [fadetime, default: 1, max: 5]Changes the game speed, optionally with a fade time (default 1, max 5).
devcommands
-
randomeventStarts a random event, such as a raid.
devcommands
-
event [name]Starts a specific event by name.
devcommands
-
stopeventStops the current event.
devcommands
-
removedropsRemoves all dropped items in the area.
devcommands
-
removefishRemoves all fish.
devcommands
-
printcreaturesShows counts and levels of active creatures.
devcommands
-
printnetobj [radius = 5]Counts the network objects around you by name (radius 5 by default).
devcommands
-
removebirdsRemoves all birds.
devcommands
-
printlocationsShows the number of loaded locations.
devcommands
-
find [text] [pingmax]Searches loaded objects and locations by name and pings them on the map. With pingmax above 1 it places map pins.
devcommands
-
findtp [text] [index=-1] [closerange=30]Searches objects and locations by name and teleports you to the closest one outside closerange. An index picks another match.
devcommands
-
setfuel [amount=10]Refuels all light sources (10 by default).
devcommands admin only
-
location [SAVE*]Spawns a location at your position. Caution: saving stays disabled for good unless you add SAVE.
devcommands admin only
-
haslocationChecks whether the current zone has a location.
devcommands
-
vegetationSpawns plants and vegetation.
devcommands admin only
-
nextseedForces the seed of the next dungeon. Caution: saving stays disabled for good.
devcommands admin only
-
spawn [amount] [level] [radius] [p/e/i]Spawns items or creatures with amount, level and radius. A star at the end of the word spawns every match, p picks up, e equips, i only if you have none yet.
devcommands admin only
-
catch [fishname] [level]Simulates catching a fish of a given type and level.
devcommands
-
itemset [name] [item level override] [keep]Spawns a premade gear set. Add keep to hold on to your current items.
devcommands admin only
-
posShows your current position.
devcommands
-
recall [*name]Pulls players to you, optionally only those with a matching name.
devcommands admin only
-
goto [x,z]Teleports you to the coordinates x,z.
devcommands admin only
-
exploremapReveals the whole map.
devcommands
-
resetmapResets the explored map.
devcommands
-
pukeEmpties your stomach, removing all food effects.
devcommands admin only
-
tameTames all tameable creatures nearby.
devcommands admin only
-
aggravateMakes all neutral creatures nearby hostile.
devcommands admin only
-
killallKills all creatures nearby.
devcommands admin only
-
killenemycreaturesKills all hostile creatures nearby.
devcommands admin only
-
killenemiesKills all enemies nearby.
devcommands admin only
-
killtameKills all tamed creatures nearby.
devcommands admin only
-
healRestores health and stamina fully.
devcommands admin only
-
adrenalineSets the adrenaline level.
devcommands admin only
-
godInvincible.
devcommands admin only
-
ghostGhost mode: creatures do not notice you.
devcommands admin only
-
nospawnToggles natural monster spawning.
devcommands
-
beardChanges the beard.
devcommands
-
hairChanges the hairstyle.
devcommands
-
modelSwitches the player model.
devcommands
-
todSets the time of day from 0 to 1 (0.5 is noon). -1 releases the time again.
devcommands
-
env [env]Forces a weather or environment by name.
devcommands
-
snow [amount]Adds or removes snow on nearby building pieces.
devcommands
-
updatecoverRecalculates cover (weather protection).
devcommands
-
resetenvLifts the forced weather.
devcommands
-
cinematic [name]Plays a cinematic by name.
devcommands
-
unlockcinematicsToggles unlocking all cinematics in the main menu.
devcommands
-
inventorysizeChanges the inventory size.
devcommands
-
cinematicsleep [name]Plays a cinematic for everyone on the next sleep.
devcommands
-
wind [angle] [intensity]Sets wind direction (angle) and intensity.
devcommands
-
resetwindReleases the wind again.
devcommands
-
clearstatusRemoves all status effects.
devcommands admin only
-
addstatus [name]Adds a status effect, e.g. Rested, Burning, SoftDeath or Wet.
devcommands admin only
-
setpower [name]Sets your guardian power and resets its cooldown, e.g. GP_Eikthyr or GP_TheElder.
devcommands admin only
-
peventsControls events with the subcommands list, start, stop and here.
devcommands admin only
-
tombstone [name]Creates a tombstone with a name.
devcommands admin only
-
forcedelete [radius] [*name]Removes all objects in a radius (5 by default, max 150), only matching ones if you give a name. Careful, make a backup first.
devcommands admin only
-
stopfirePuts out all spreading fires and smoke.
devcommands admin only
-
stopsmokePuts out all spreading fires.
devcommands admin only
-
repairallRepairs all equipment.
devcommands
-
respawntimeSets the respawn wait time.
devcommands
-
biomeinfoShows information about the current biome sector.
devcommands
-
altbiomsLists biomes with modifiers.
devcommands
-
findbiomeMarks the center of every biome of a type on the map.
devcommands
-
findbiometpFinds the closest matching biome and teleports you there.
devcommands
General 33
Work without admin rights or devcommands, mostly just for you.
-
helpLists the console commands. Numbers show a part only, e.g. help 2 4 for the second quarter.
-
devcommandsUnlocks the cheats. On a server, admins only.
-
pingMeasures the connection to the server.
-
lodbiasChanges the level of detail at distance.
-
infoPrints system information.
-
fovChanges the camera field of view.
-
exclusivefullscreenSwitches between exclusive fullscreen and borderless window.
-
sortcraft [type]Sorts the crafting lists by a setting.
-
statsShows your character stats.
-
achievementsShows your achievement progress.
-
getstatShows a single stat value.
-
maxfps [FPS]Limits the frames per second.
-
resetknownitemsForgets all known items and recipes of your character.
-
tutorialresetResets the tutorial hints.
-
freeflyFree camera for photos.
-
ffsmoothSets how smoothly the free camera glides.
-
resetsharedmapRemoves shared map data from the cartography table.
-
inventorycleanDrops items sitting in invalid inventory slots.
-
clearClears the console window.
-
clearpopupsCloses all open unlock messages.
-
filtercraft [name]Filters the crafting list by part of a text.
-
bind [keycode] [command and parameters]Binds a console command to a key. May clash with the game controls.
-
unbind [keycode]Clears all binds on a key.
-
printbindsShows the current key binds.
-
resetbindsResets all custom binds to the default dev commands.
-
heightShows the world generator height at your position.
-
printseedsShows the seeds of loaded dungeons.
-
nomapTurns the map off for your character. As host, for everyone who joins from now on.
-
resetspawnResets your respawn point.
-
dieYour character dies.
-
saySends a chat message.
-
sShouts a message.
-
w [playername]Whispers a private message to a player.
No command matches your search.
Frequently asked questions
Why does the game say "Cheats are not enabled"?
Type devcommands first. On a server this only works if your Steam ID is on the admin list.
Can I type the commands into the server console in the panel?
No. The Valheim dedicated server has no input console. Admin commands such as kick, ban or save are typed in game with F5 and then act on the server.
Do I still get achievements with cheats?
Items and pieces created with cheats normally do not trigger achievements. The command yesiuseddevcommandsbutiwantmyachievementsanyway 1 turns that check off.
Continue on your server
Open your server dashboard if needed. Confirm changes to settings and worlds there yourself.